MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / HighlightQuery

Function HighlightQuery

apps/baseai.dev/src/components/Search.tsx:154–163  ·  view source on GitHub ↗
({ text, query }: { text: string; query: string })

Source from the content-addressed store, hash-verified

152}
153
154function HighlightQuery({ text, query }: { text: string; query: string }) {
155 return (
156 <Highlighter
157 highlightClassName="underline bg-transparent text-warning dark:text-[#fad000]"
158 searchWords={[query]}
159 autoEscape={true}
160 textToHighlight={text}
161 />
162 );
163}
164
165function SearchResult({
166 result,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected