UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

6 lines 546 B
import{RECEIVE_SEARCH_SUGGESTIONS}from"../constants";/** * Creates the dispatched RECEIVE_SEARCH_SUGGESTIONS action object. * @param {string} searchPhrase The search phrase. * @param {Array} suggestions Array of strings. The suggestions for the search phrase. * @return {Object} The RECEIVE_SEARCH_SUGGESTIONS action. */var receiveSearchSuggestions=function receiveSearchSuggestions(searchPhrase,suggestions){return{type:RECEIVE_SEARCH_SUGGESTIONS,searchPhrase:searchPhrase,suggestions:suggestions};};export default receiveSearchSuggestions;