(path: string)
| 503 | }, [tree, openSet]); |
| 504 | |
| 505 | const toggleGroup = (path: string) => { |
| 506 | setManualOpen((prev) => { |
| 507 | const next = new Set(prev); |
| 508 | if (next.has(path)) next.delete(path); |
| 509 | else next.add(path); |
| 510 | return next; |
| 511 | }); |
| 512 | }; |
| 513 | |
| 514 | return ( |
| 515 | <> |