MCPcopy
hub / github.com/OpenCut-app/OpenCut / toggle

Function toggle

apps/web/src/components/section.tsx:61–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 }, [sectionKey]);
60
61 const toggle = () => {
62 const next = !isOpen;
63 setIsOpen(next);
64 if (sectionKey) sectionExpandedCache.set(sectionKey, next);
65 };
66
67 return (
68 <SectionCtx.Provider value={{ isOpen, toggle, collapsible }}>

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected