(key: unknown)
| 581 | const isPageExpanded = (index: number) => |
| 582 | expandedPages().includes(index) || matchingPage() === index |
| 583 | const childSearch = (key: unknown): ExplorerSearch | undefined => { |
| 584 | const search = props.search |
| 585 | const match = search?.match.children.get(key) |
| 586 | return search && match ? { term: search.term, match } : undefined |
| 587 | } |
| 588 | const label = () => ( |
| 589 | <HighlightedText |
| 590 | text={props.label} |