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

Function close

ark/docs/components/shell/MobileNav.tsx:55–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 const refocusMenuButton = useRef(false)
54
55 const close = () => {
56 refocusMenuButton.current = true
57 setDrawerOpen(false)
58 }
59
60 useEffect(() => setDrawerOpen(false), [pathname])
61

Callers 1

DrawerFunction · 0.70

Calls 1

setDrawerOpenFunction · 0.90

Tested by

no test coverage detected