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