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

Function toggleGroup

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

Source from the content-addressed store, hash-verified

519 }, [tree, openSet]);
520
521 const toggleGroup = (path: string) => {
522 setManualOpen((prev) => {
523 const next = new Set(prev);
524 if (next.has(path)) next.delete(path);
525 else next.add(path);
526 return next;
527 });
528 };
529
530 return (
531 <>

Callers 1

ToolTreeBodyFunction · 0.85

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected