UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

6 lines 393 B
import{ERROR_PRODUCT}from"../constants";/** * Dispatches the ERROR_PRODUCT action object. * @param {string} productId The ID of the received product. * @param {string} errorCode error * @return {Object} The ERROR_PRODUCT action. */var errorProduct=function errorProduct(productId,errorCode){return{type:ERROR_PRODUCT,productId:productId,errorCode:errorCode};};export default errorProduct;