UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

6 lines 508 B
import{RECEIVE_PRODUCT_OPTIONS}from"../constants";/** * Dispatches the RECEIVE_PRODUCT_OPTIONS action. * @param {string} productId The ID of the product for which the options are requested. * @param {Object} options The data of the received product options. * @return {Object} The RECEIVE_PRODUCT_OPTIONS action. */var receiveProductOptions=function receiveProductOptions(productId,options){return{type:RECEIVE_PRODUCT_OPTIONS,productId:productId,options:options};};export default receiveProductOptions;