import { Suggestion } from '@empathyco/x-types' ; param query param amount returns export function getQuerySuggestionsStub ( query , amount = 3 ) { return Array . from ( { length : amount } , ( _ , index ) => createQuerySuggestion ( `${ query } suggestion ${ index }` ) ) ; } param query param suggestion returns export function createQuerySuggestion ( query , suggestion ? ) { return { facets : [ ] , key : query , query , totalResults : 10 , results : [ ] , modelName : 'QuerySuggestion' , ... suggestion } ; }