Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arktypeio/arktype
/ close
Function
close
ark/docs/components/shell/CopyPage.tsx:96–99 ·
view source on GitHub ↗
(refocus: boolean)
Source
from the content-addressed store, hash-verified
94
const items = () => [...(menu.current?.querySelectorAll(
"a"
) ?? [])]
95
96
const close = (refocus: boolean) => {
97
setOpen(false)
98
if (refocus) toggle.current?.focus()
99
}
100
101
useEffect(() => {
102
if (!open) return
Callers
2
go
Function · 0.70
CopyPage
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected