summaryrefslogtreecommitdiff
path: root/src/lib/checkout/stores/stateCheckout.js
blob: 5d2904dd9590b901701a3916977eaee4921b01a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { create } from "zustand";

export const stateCheckout = create((set) => ({
    checkWeigth : false,
    hasFlashSale : false,
    checkoutValidation : false,
    setCheckWeigth : (checkWeigth) => set({ checkWeigth }),
    setHasFlashSale : (hasFlashSale) => set({ hasFlashSale }),
    setCheckoutValidation : (checkoutValidation) => set({ checkoutValidation }),

}))