MCPcopy Index your code
hub / github.com/emwalker/digraph / termsFromQueryInfo

Function termsFromQueryInfo

next/components/SearchBox/index.tsx:39–40  ·  view source on GitHub ↗
({ topics, phrases }: QueryInfo)

Source from the content-addressed store, hash-verified

37type QueryInfo = SearchBoxQuery['view']['queryInfo']
38
39const termsFromQueryInfo = ({ topics, phrases }: QueryInfo): string[] =>
40 topics.map(({ displayName }) => displayName).concat(phrases.length > 0 ? [phrases.join(' ')] : [])
41
42// We don't need to filter the options at this point
43const optionsFilter: OptionsFilter = ({ options }) => options

Callers 1

SearchBoxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected