MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / handleClick

Function handleClick

src/components/FileTree.tsx:53–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 const isFolder = node.type === "folder";
52
53 const handleClick = () => {
54 if (isFolder) {
55 setIsExpanded(!isExpanded);
56 } else {
57 onSelect(node.path);
58 }
59 };
60
61 const Icon = isFolder
62 ? isExpanded

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected