(label: string)
| 61 | |
| 62 | /** Helper: find MenuItem config captured via our tracking array by label */ |
| 63 | const getMenuItemConfigByLabel = (label: string) => |
| 64 | menuItemInstances.find((item) => item.label === label) as |
| 65 | | { |
| 66 | label?: string; |
| 67 | enabled?: boolean; |
| 68 | visible?: boolean; |
| 69 | click?: () => void; |
| 70 | } |
| 71 | | undefined; |
| 72 | |
| 73 | /** Lightweight type describing the (subset) of fields we inspect on template items */ |
| 74 | type TemplateItem = { |