@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
6 lines • 447 B
JavaScript
import{ERROR_SEARCH_RESULTS}from"../constants";/**
* Creates the dispatched ERROR_SEARCH_RESULTS action object.
* @param {string} searchPhrase The search phrase.
* @param {number} offset The result offset.
* @return {Object} The ERROR_SEARCH_RESULTS action.
*/var errorSearchResults=function errorSearchResults(searchPhrase,offset){return{type:ERROR_SEARCH_RESULTS,searchPhrase:searchPhrase,offset:offset};};export default errorSearchResults;