UNPKG

@nacelle/react-hooks

Version:

Custom convenience hooks for use when building apps with Nacelle

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