summaryrefslogtreecommitdiff
path: root/src/lib/checkout/stores/stateQuotation.js
diff options
context:
space:
mode:
authorIndoteknik . <andrifebriyadiputra@gmail.com>2025-08-16 14:46:48 +0700
committerIndoteknik . <andrifebriyadiputra@gmail.com>2025-08-16 14:46:48 +0700
commitc6b75363821e5c1153d8a9e2c1a4326568ab6026 (patch)
treed5940768d254d3aa6862c32012002d5274467227 /src/lib/checkout/stores/stateQuotation.js
parentba157d5e0cd30ae2ed13edba051038c2c7bb1a1f (diff)
parente3bf34095ac7571d04ebddba6f04815d7a71ed13 (diff)
fix merge
Diffstat (limited to 'src/lib/checkout/stores/stateQuotation.js')
-rw-r--r--src/lib/checkout/stores/stateQuotation.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/lib/checkout/stores/stateQuotation.js b/src/lib/checkout/stores/stateQuotation.js
new file mode 100644
index 00000000..da84997a
--- /dev/null
+++ b/src/lib/checkout/stores/stateQuotation.js
@@ -0,0 +1,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 })
+
+
+})) \ No newline at end of file