@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
6 lines • 487 B
JavaScript
import{ERROR_PRODUCT_PROPERTIES}from"../constants";/**
* Dispatches the ERROR_PRODUCT_PROPERTIES action object.
* @param {string} productId The ID of the product that received properties.
* @param {string} errorCode errorCode
* @return {Object} The ERROR_PRODUCT_PROPERTIES action.
*/var errorProductProperties=function errorProductProperties(productId,errorCode){return{type:ERROR_PRODUCT_PROPERTIES,productId:productId,errorCode:errorCode};};export default errorProductProperties;