77a1840611
Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Matheus <matheus_benini@hotmail.com> Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
21 lines
526 B
TypeScript
21 lines
526 B
TypeScript
import { IconComponent } from '@/ui/icon/types/IconComponent';
|
|
import { MenuItem } from '@/ui/menu-item/components/MenuItem';
|
|
|
|
import { ContextMenuItemAccent } from '../types/ContextMenuItemAccent';
|
|
|
|
type ContextMenuItemProps = {
|
|
Icon: IconComponent;
|
|
label: string;
|
|
accent?: ContextMenuItemAccent;
|
|
onClick: () => void;
|
|
};
|
|
|
|
export const ContextMenuItem = ({
|
|
label,
|
|
Icon,
|
|
accent = 'default',
|
|
onClick,
|
|
}: ContextMenuItemProps) => (
|
|
<MenuItem LeftIcon={Icon} onClick={onClick} accent={accent} text={label} />
|
|
);
|