@shopgate/pwa-common-commerce
Version:
Commerce library for the Shopgate Connect PWA.
12 lines (11 loc) • 390 B
JavaScript
import { SET_CART_PENDING_PRODUCT_COUNT } from "../constants";
/**
* Creates the dispatched SET_CART_PENDING_PRODUCT_COUNT object.
* @param {number} count The cart product count.
* @return {Object} The SET_CART_PENDING_PRODUCT_COUNT action.
*/
const setCartProductPendingCount = count => ({
type: SET_CART_PENDING_PRODUCT_COUNT,
count
});
export default setCartProductPendingCount;