@shopgate/engage
Version:
Shopgate's ENGAGE library.
9 lines • 637 B
JavaScript
import{RECEIVE_SHOP_SETTINGS,ERROR_SHOP_SETTINGS}from"../constants";/**
* Creates the dispatched RECEIVE_SHOP_SETTINGS action object.
* @param {Array} settings A list of shop settings.
* @returns {Object} The dispatched action object.
*/export var receiveShopSettings=function receiveShopSettings(settings){return{type:RECEIVE_SHOP_SETTINGS,settings:settings};};/**
* Creates the dispatched ERROR_SHOP_SETTINGS action object.
* @param {Object} error An error object.
* @returns {Object} The dispatched action object.
*/export var errorShopSettings=function errorShopSettings(error){return{type:ERROR_SHOP_SETTINGS,error:error};};