(path: string)
| 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 | <> |