| 1 | import type { Component } from 'vue' |
| 2 | |
| 3 | type ContextMenuOption = { |
| 4 | action: () => void |
| 5 | disabled?: boolean |
| 6 | show?: boolean |
| 7 | } & ( |
| 8 | | { |
| 9 | small?: false |
| 10 | icon?: Component | string |
| 11 | label: string | Component |
| 12 | } |
| 13 | | { |
| 14 | small: true |
| 15 | icon: Component | string |
| 16 | label: string |
| 17 | } |
| 18 | ) |
| 19 | |
| 20 | export type ContextMenuItem = ContextMenuOption | 'separator' |
| 21 |