@shopgate/engage
Version:
Shopgate's ENGAGE library.
6 lines • 420 B
JavaScript
import{SELECT_LOCATION}from"../constants";/**
* Creates the dispatched SELECT_LOCATION action object.
* @param {Object} location The location data to store for the use.
* @param {boolean} showToast Whether to show a toast message.
* @returns {Object}
*/var selectLocation=function selectLocation(location,showToast){return{type:SELECT_LOCATION,location:location,showToast:showToast};};export default selectLocation;