Function
termsFromQueryInfo
({ topics, phrases }: QueryInfo)
Source from the content-addressed store, hash-verified
| 37 | type QueryInfo = SearchBoxQuery['view']['queryInfo'] |
| 38 | |
| 39 | const 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 |
| 43 | const optionsFilter: OptionsFilter = ({ options }) => options |
Tested by
no test coverage detected