()
| 586 | return search && match ? { term: search.term, match } : undefined |
| 587 | } |
| 588 | const label = () => ( |
| 589 | <HighlightedText |
| 590 | text={props.label} |
| 591 | term={props.search?.match.label ? props.search.term : undefined} |
| 592 | highlight={props.highlight} |
| 593 | /> |
| 594 | ) |
| 595 | const valueText = () => { |
| 596 | if (!props.search) return displayValue(props.value) |
| 597 | switch (props.search.match.kind) { |