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