UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

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