@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
12 lines (11 loc) • 391 B
JavaScript
import { REQUEST_PRODUCT_OPTIONS } from "../constants";
/**
* Dispatches the REQUEST_PRODUCT_OPTIONS action.
* @param {string} productId The ID of the product for which the options are requested.
* @return {Object} The REQUEST_PRODUCT_OPTIONS action.
*/
const requestProductOptions = productId => ({
type: REQUEST_PRODUCT_OPTIONS,
productId
});
export default requestProductOptions;