@shopgate/engage
Version:
Shopgate's ENGAGE library.
14 lines (13 loc) • 386 B
JavaScript
import { RECEIVE_LOCATIONS } from "../constants";
/**
* Creates the dispatched RECEIVE_LOCATIONS action object.
* @param {Object[]} filters filters.
* @param {Object[]} locations locations.
* @return {Object} The RECEIVE_LOCATIONS action.
*/
const receiveLocations = (filters, locations) => ({
type: RECEIVE_LOCATIONS,
locations,
filters
});
export default receiveLocations;