summaryrefslogtreecommitdiff
path: root/src/lib/checkout/stores/stateQuotation.js
blob: da84997a56c2a200ec3cdf2654f6e6b4e3cd3a89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { create } from "zustand";

export const useQuotation = create((set) => ({
    products : null,
    checkWeigth : false,
    hasFlashSale : false,
    checkoutValidation : false,
    biayaKirim : 0,
    etd : null,
    unit : null,
    selectedCourier : null,
    selectedCourierId : null,
    selectedService : null,
    listExpedisi : [],
    productSla : null,
    setCheckWeight : (checkWeigth) => set({ checkWeigth }),
    setHasFlashSale : (hasFlashSale) => set({ hasFlashSale }),
    setCheckoutValidation : (checkoutValidation) => set({ checkoutValidation }),
    setBiayaKirim : (biayaKirim) => set({ biayaKirim }),
    setProducts : (products) => set({ products }),
    setEtd : (etd) => set({ etd }),
    setUnit : (unit) => set({ unit }),
    setSelectedCourier : (selectedCourier) => set({ selectedCourier }),
    setSelectedService : (selectedService) => set({ selectedService }),
    setSelectedCourierId : (selectedCourierId) => set({ selectedCourierId }),
    setExpedisi : (listExpedisi) => set({ listExpedisi }),
    setProductSla : (productSla) => set({ productSla })


}))