import { Icon } from '@/Components/Icon' import { FunctionComponent } from 'preact' import { IconType } from '@standardnotes/snjs' interface Props { iconType: IconType label: string selected: boolean hasBubble?: boolean onClick: () => void } export const MenuItem: FunctionComponent = ({ iconType, label, selected, onClick, hasBubble, }) => (
{ e.preventDefault() onClick() }} >
{label} {hasBubble && ⚠️}
)