blob: 97b0c64ef611bef8d2c0773537b9aa9d74863817 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { create } from "zustand";
export const useCheckout = create((set) => ({
products : null,
checkWeigth : false,
hasFlashSale : false,
checkoutValidation : false,
biayaKirim : 0,
etd : null,
setCheckWeight : (checkWeigth) => set({ checkWeigth }),
setHasFlashSale : (hasFlashSale) => set({ hasFlashSale }),
setCheckoutValidation : (checkoutValidation) => set({ checkoutValidation }),
setBiayaKirim : (biayaKirim) => set({ biayaKirim }),
setProducts : (products) => set({ products }),
}))
|