| 1 |
import type { IconCategory } from '@/types/icons/icon-category' |
| 2 |
|
| 3 |
export interface ContextMenuAction { |
| 4 |
label: string | (() => string) |
| 5 |
icon?: string | (() => string) |
| 6 |
iconType?: 'fill' | 'line' | 'outline' |
| 7 |
iconCategory?: IconCategory |
| 8 |
iconColor?: string |
| 9 |
iconOnly?: boolean |
| 10 |
iconSize?: 'xs' | 's' | 'd' | 'l' |
| 11 |
secondary?: boolean | (() => boolean) |
| 12 |
divided?: boolean | (() => boolean) |
| 13 |
danger?: boolean | (() => boolean) |
| 14 |
grouped?: boolean |
| 15 |
showArrow?: boolean |
| 16 |
handler?: (entityId: number | null) => void |
| 17 |
isSelected?: () => boolean |
| 18 |
isHidden?: () => boolean |
| 19 |
isActive?: () => boolean |
| 20 |
isComingSoon?: boolean | (() => boolean) |
| 21 |
value?: string | number |
| 22 |
} |
| 23 |
|