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