Return type for the useContextMenu hook.
Contains context menu state and handler functions.
Source
interfaceUseContextMenuReturn { /** Current context menu state, null when menu is closed */ contextMenu:ContextMenuState|null; /** Function to handle context menu open events */ handleContextMenu: (event:MouseEvent, product:Product) =>void; /** Function to close the context menu */ handleCloseContextMenu: () =>void; }
Return type for the useContextMenu hook. Contains context menu state and handler functions.
Source