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

Function setDrawerOpen

ark/docs/components/shell/drawer.ts:8–12  ·  view source on GitHub ↗
(value: boolean)

Source from the content-addressed store, hash-verified

6const listeners = new Set<() => void>()
7
8export const setDrawerOpen = (value: boolean): void => {
9 if (value === open) return
10 open = value
11 for (const listener of listeners) listener()
12}
13
14const subscribe = (listener: () => void) => {
15 listeners.add(listener)

Callers 3

MenuButtonFunction · 0.90
closeFunction · 0.90
DrawerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected