import type { IMenu } from './IMenu' ; const menuSymbol = Symbol ( '@menu' ) ; export function createMenu ( id , label , icon ? , tooltip ? ) { const menu = { id : `@menu/${ id }` , label , icon , tooltip , } ; ( menu as any ) [ menuSymbol ] = true ; return menu ; } export function isMenu ( obj ) { return ( obj && typeof obj === 'object' && menuSymbol in obj ) ; }