UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

6 lines 451 B
import{RECEIVE_PRODUCT}from"../constants";/** * Creates the dispatched RECEIVE_PRODUCT action object. * @param {string} productId The ID of the received product. * @param {Object} productData The data of the received product. * @return {Object} The RECEIVE_PRODUCT action. */var receiveProduct=function receiveProduct(productId,productData){return{type:RECEIVE_PRODUCT,productId:productId,productData:productData};};export default receiveProduct;