@shopgate/engage
Version:
Shopgate's ENGAGE library.
7 lines • 744 B
JavaScript
import{SET_USER_SEARCH_COUNTRY_CODE}from"../constants";/**
* Creates the dispatched SET_USER_SEARCH_COUNTRY_CODE action object.
* @param {string} countryCode The countryCode.
* @param {string} [productId=null] An optional product code.
* @param {boolean} [isStoreFinder=false] Was the actions dispatched for the store finder
* @returns {Object}
*/var setUserSearchCountryCode=function setUserSearchCountryCode(countryCode){var productId=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var isStoreFinder=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;return{type:SET_USER_SEARCH_COUNTRY_CODE,countryCode:countryCode,productId:productId,isStoreFinder:isStoreFinder};};export default setUserSearchCountryCode;