summaryrefslogtreecommitdiff
path: root/src/lib/checkout/stores/stateCheckout.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/checkout/stores/stateCheckout.js')
-rw-r--r--src/lib/checkout/stores/stateCheckout.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/checkout/stores/stateCheckout.js b/src/lib/checkout/stores/stateCheckout.js
new file mode 100644
index 00000000..97b0c64e
--- /dev/null
+++ b/src/lib/checkout/stores/stateCheckout.js
@@ -0,0 +1,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 }),
+
+})) \ No newline at end of file