export type ActionCallback = () => void; export interface ContextMenuItem { /** * Display text for the menu item */ text: string; /** * Action to execute when item is clicked */ action?: ActionCallback; /** * Whether the item is disabled */ disabled?: boolean; /** * Whether this is a separator item */ separator?: boolean; /** * Icon class or name for the menu item */ icon?: string; /** * Custom CSS styles for the item */ style?: string; } /** * Context menu event handler type */ export type OnContextMenu = (event: MouseEvent, data: any) => void;