UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

6 lines 485 B
import{RECEIVE_PRODUCT_IMAGES}from"../constants";/** * Creates the dispatched RECEIVE_PRODUCT_IMAGES action object. * @param {string} productId The ID of the product. * @param {Array} productImages List of product images. * @return {Object} The RECEIVE_PRODUCT_IMAGES action. */var receiveProductImages=function receiveProductImages(productId,productImages){return{type:RECEIVE_PRODUCT_IMAGES,productId:productId,productImages:productImages};};export default receiveProductImages;