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

Function toggleGroup

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

Source from the content-addressed store, hash-verified

507 }, [tree, openSet]);
508
509 const toggleGroup = (path: string) => {
510 setManualOpen((prev) => {
511 const next = new Set(prev);
512 if (next.has(path)) next.delete(path);
513 else next.add(path);
514 return next;
515 });
516 };
517
518 return (
519 <>

Callers 1

ToolTreeBodyFunction · 0.85

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected