summaryrefslogtreecommitdiff
path: root/src/lib/checkout/stores
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-08-11 10:31:32 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-08-11 10:31:32 +0000
commit4e5422a800b0cb3eaa4436693f10298434f11621 (patch)
tree01d718acf081833beb8e8bf40fa63566502d1981 /src/lib/checkout/stores
parentb124b1acd597889c6e4de6b0f8585d63d8cb8575 (diff)
parent43f08a6b39cf6555b9c87d94ade2af5a5f7747bf (diff)
Merged in quotation-v2 (pull request #434)
Quotation v2
Diffstat (limited to 'src/lib/checkout/stores')
-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