type ContextMenuState = { availableMenus?: Record<string, ContextMenuDef>; menuDefaults?: Partial<ContextMenuDef>; };