import type { IActionItem } from '../../Action/IActionItem' ; import type { IMenuActionItem } from './IMenuActionItem' ; import { MenuItem } from './MenuItem' ; export class MenuActionItem extends MenuItem implements IMenuActionItem { readonly action : IActionItem ; get hidden ( ) : boolean { return this . action . isHidden ( ) ; } get disabled ( ) : boolean { return this . action . isDisabled ( ) ; } constructor ( action ) { super ( action . action . id ) ; this . action = action ; } }