UNPKG

@nacelle/react-hooks

Version:

Custom convenience hooks for use when building apps with Nacelle

9 lines (8 loc) 336 B
import { CartItem } from '../../common/types'; import { AddToCartAction, CartState } from '~/hooks/use-cart/use-cart.types'; declare const addToCart: AddToCartFunction; export default addToCart; export declare type AddToCartFunction = (state: CartState, action: AddToCartAction) => { cart: CartItem[]; show: boolean; };