import type { IContextMenuItem } from '../ContextMenu/IContextMenuItem' ; import type { IMenuContext } from '../ContextMenu/IMenuContext' ; import type { IMenuPanel } from '../IMenuPanel' ; export interface IComputedContextMenuPanelOptions < T > { id : string ; menuItemsGetter : ( context : IMenuContext < T > ) => Array < IContextMenuItem < T > > ; } export class ComputedContextMenuModel < T > implements IMenuPanel { id : string ; get menuItems ( ) { return [ ] ; } constructor ( readonly options ) { this . id = this . options . id ; } }