import type { IMenuBaseItem } from './IMenuBaseItem' ; import type { IMenuItemEvents } from './IMenuItem' ; import { MenuItem } from './MenuItem' ; export class MenuBaseItem extends MenuItem implements IMenuBaseItem { private readonly isDisabled ? : ( ) => boolean ; readonly label : string ; readonly icon ? : string ; readonly tooltip ? : string ; readonly hidden ? : boolean ; get disabled ( ) : boolean { return this . isDisabled ?. ( ) ?? false ; } constructor ( id , label , tooltip ? , events ? , isDisabled ? ) { super ( id , events ) ; this . label = label ; this . tooltip = tooltip ; this . isDisabled = isDisabled ; } }