UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

6 lines 478 B
import{ERROR_PRODUCT_VARIANTS}from"../constants";/** * Dispatches the ERROR_PRODUCT_VARIANTS action. * @param {string} productId The ID of the product for which the variants are requested. * @param {string} errorCode errorCode * @return {Object} The ERROR_PRODUCT_VARIANTS action. */var errorProductVariants=function errorProductVariants(productId,errorCode){return{type:ERROR_PRODUCT_VARIANTS,productId:productId,errorCode:errorCode};};export default errorProductVariants;