@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
12 lines (11 loc) • 318 B
JavaScript
import { SET_PRODUCT_ID } from "../constants";
/**
* Creates the dispatched SET_PRODUCT_ID action object.
* @param {string|null} productId The product id.
* @returns {Object} The dispatched action object.
*/
const setProductId = productId => ({
type: SET_PRODUCT_ID,
productId
});
export default setProductId;