import React from 'react'; import classNames from 'classnames'; import { SessionIcon, SessionIconType } from './icon/'; export enum SessionDropDownItemType { Default = 'default', Danger = 'danger', } type Props = { content: string; type: SessionDropDownItemType; icon: SessionIconType | null; active: boolean; onClick: any; }; export const SessionDropdownItem = (props: Props) => { const clickHandler = (e: any) => { if (props.onClick) { e.stopPropagation(); props.onClick(); } }; const { content, type, icon, active } = props; return (
{icon ? : ''}
{content}
); };