summaryrefslogtreecommitdiff
path: root/src/lib/checkout/stores
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/checkout/stores')
-rw-r--r--src/lib/checkout/stores/stateCheckout.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/checkout/stores/stateCheckout.js b/src/lib/checkout/stores/stateCheckout.js
index 5d2904dd..97b0c64e 100644
--- a/src/lib/checkout/stores/stateCheckout.js
+++ b/src/lib/checkout/stores/stateCheckout.js
@@ -1,11 +1,16 @@
import { create } from "zustand";
-export const stateCheckout = create((set) => ({
+export const useCheckout = create((set) => ({
+ products : null,
checkWeigth : false,
hasFlashSale : false,
checkoutValidation : false,
- setCheckWeigth : (checkWeigth) => set({ checkWeigth }),
+ 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