MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / close

Function close

graph-ui/src/projects/ProjectSwitcher.tsx:27–30  ·  view source on GitHub ↗
(restoreFocus = false)

Source from the content-addressed store, hash-verified

25 const disclosure = useRef<HTMLDetailsElement>(null);
26 const trigger = useRef<HTMLElement>(null);
27 const close = (restoreFocus = false): void => {
28 setOpen(false);
29 if (restoreFocus) trigger.current?.focus();
30 };
31
32 useLayoutEffect(() => {
33 if (!open) return;

Callers 1

ProjectSwitcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected