MCPcopy Create free account
hub / github.com/arktypeio/arktype / useDrawerOpen

Function useDrawerOpen

ark/docs/components/shell/drawer.ts:19–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19export const useDrawerOpen = (): boolean =>
20 useSyncExternalStore(
21 subscribe,
22 () => open,
23 () => false
24 )
25
26export const menuButtonId = "drawer-toggle"

Callers 2

MenuButtonFunction · 0.90
DrawerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected