MCPcopy Create free account
hub / github.com/Surfer-Org/Protocol / HighlightQuery

Function HighlightQuery

docs/src/components/Search.jsx:130–139  ·  view source on GitHub ↗
({ text, query })

Source from the content-addressed store, hash-verified

128}
129
130function HighlightQuery({ text, query }) {
131 return (
132 <Highlighter
133 highlightClassName="underline bg-transparent text-blue-500"
134 searchWords={[query]}
135 autoEscape={true}
136 textToHighlight={text}
137 />
138 )
139}
140
141function SearchResult({
142 result,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected