@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
6 lines • 423 B
JavaScript
import{RECEIVE_PRODUCT_MEDIA}from"../constants";/**
* Dispatches the RECEIVE_PRODUCT_MEDIA action.
* @param {string} productId The ID of the product for which the options are requested.
* @param {Object[]} media collection
* @return {Object}
*/var receiveProductMedia=function receiveProductMedia(productId,media){return{type:RECEIVE_PRODUCT_MEDIA,productId:productId,media:media};};export default receiveProductMedia;