| 2 | import { createPortal } from 'react-dom' |
| 3 | |
| 4 | export interface ContextMenuItem { |
| 5 | kind?: 'item' | 'separator' |
| 6 | label?: string |
| 7 | /** Optional SVG icon to the left of the label. */ |
| 8 | icon?: JSX.Element |
| 9 | /** Right-aligned hint, e.g. a keyboard shortcut. */ |
| 10 | hint?: string |
| 11 | /** Displayed in muted red (used for destructive actions). */ |
| 12 | danger?: boolean |
| 13 | disabled?: boolean |
| 14 | onSelect?: () => void | Promise<void> |
| 15 | } |
| 16 | |
| 17 | interface Props { |
| 18 | x: number |
nothing calls this directly
no outgoing calls
no test coverage detected