()
| 549 | return search && match ? { term: search.term, match } : undefined |
| 550 | } |
| 551 | const label = () => ( |
| 552 | <HighlightedText |
| 553 | text={props.label} |
| 554 | term={props.search?.match.label ? props.search.term : undefined} |
| 555 | highlight={props.highlight} |
| 556 | /> |
| 557 | ) |
| 558 | const valueText = () => { |
| 559 | if (!props.search) return displayValue(props.value) |
| 560 | switch (props.search.match.kind) { |