summaryrefslogtreecommitdiff
path: root/src/lib/checkout/stores/stateQuotation.js
diff options
context:
space:
mode:
authorIndoteknik . <andrifebriyadiputra@gmail.com>2025-08-07 15:33:20 +0700
committerIndoteknik . <andrifebriyadiputra@gmail.com>2025-08-07 15:33:20 +0700
commitbb656eb35742fbb18fe9c700a3569c4765c65a1c (patch)
treed7a06cfef2b7d72f9690e71e2b465906c07c91da /src/lib/checkout/stores/stateQuotation.js
parentf9322bb1446166181c1bd271ac944ac586b87631 (diff)
(andri) tru
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