@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
6 lines • 533 B
JavaScript
import{RECEIVE_PRODUCT_PROPERTIES}from"../constants";/**
* Creates the dispatched RECEIVE_PRODUCT_PROPERTIES action object.
* @param {string} productId The ID of the product that received properties.
* @param {Object} properties Key-value list of properties.
* @return {Object} The RECEIVE_PRODUCT_PROPERTIES action.
*/var receiveProductProperties=function receiveProductProperties(productId,properties){return{type:RECEIVE_PRODUCT_PROPERTIES,productId:productId,properties:properties};};export default receiveProductProperties;