({ text, query }: { text: string; query: string })
| 152 | } |
| 153 | |
| 154 | function HighlightQuery({ text, query }: { text: string; query: string }) { |
| 155 | return ( |
| 156 | <Highlighter |
| 157 | highlightClassName="underline bg-transparent text-red-500" |
| 158 | searchWords={[query]} |
| 159 | autoEscape={true} |
| 160 | textToHighlight={text} |
| 161 | /> |
| 162 | ) |
| 163 | } |
| 164 | |
| 165 | function SearchResult({ |
| 166 | result, |
nothing calls this directly
no outgoing calls
no test coverage detected