MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toggleGroup

Function toggleGroup

packages/react/src/components/tool-tree.tsx:552–559  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

550 }, [tree, openSet]);
551
552 const toggleGroup = (path: string) => {
553 setManualOpen((prev) => {
554 const next = new Set(prev);
555 if (next.has(path)) next.delete(path);
556 else next.add(path);
557 return next;
558 });
559 };
560
561 return (
562 <>

Callers 1

ToolTreeBodyFunction · 0.85

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected