@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
12 lines (11 loc) • 413 B
JavaScript
import { REQUEST_PRODUCT_PROPERTIES } from "../constants";
/**
* Creates the dispatched REQUEST_PRODUCT_PROPERTIES action object.
* @param {string} productId The ID of the product that requests properties.
* @return {Object} The REQUEST_PRODUCT_PROPERTIES action.
*/
const requestProductProperties = productId => ({
type: REQUEST_PRODUCT_PROPERTIES,
productId
});
export default requestProductProperties;