MCPcopy Create free account
hub / github.com/Qinbf/groundmap / toggle

Function toggle

web/components/RightPanel.tsx:64–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }, []);
63
64 const toggle = () => {
65 userExplicitRef.current = true;
66 setCollapsed((prev) => {
67 const next = !prev;
68 try {
69 document.cookie = `${COOKIE}=${
70 next ? "1" : "0"
71 }; path=/; max-age=${60 * 60 * 24 * 365}; SameSite=Lax`;
72 } catch {
73 // ignore
74 }
75 return next;
76 });
77 };
78
79 const baseButtonClass = cn(
80 "inline-flex h-6 w-6 items-center justify-center",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected