MCPcopy Create free account
hub / github.com/AsyncFuncAI/deepwiki-open / toggleSection

Function toggleSection

src/components/WikiTreeView.tsx:54–65  ·  view source on GitHub ↗
(sectionId: string, event: React.MouseEvent)

Source from the content-addressed store, hash-verified

52 );
53
54 const toggleSection = (sectionId: string, event: React.MouseEvent) => {
55 event.stopPropagation();
56 setExpandedSections(prev => {
57 const newSet = new Set(prev);
58 if (newSet.has(sectionId)) {
59 newSet.delete(sectionId);
60 } else {
61 newSet.add(sectionId);
62 }
63 return newSet;
64 });
65 };
66
67 const renderSection = (sectionId: string, level = 0) => {
68 const section = wikiStructure.sections.find(s => s.id === sectionId);

Callers 1

renderSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected