UNPKG

@shopgate/pwa-common-commerce

Version:

Commerce library for the Shopgate Connect PWA.

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