useGlobalMenuIsOpen

See source code
function useGlobalMenuIsOpen(
  id: string,
  onChange?: (isOpen: boolean) => void,
  onEvent?: (id: string) => void
): readonly [boolean, (isOpen: boolean) => void]

Parameters

NameDescription

id

string

onChange

(isOpen: boolean) => void

onEvent

(id: string) => void

Returns

readonly [boolean, (isOpen: boolean) => void]
Prev
useEditorComponents
Next
useIsCropping