summaryrefslogtreecommitdiff
path: root/src/lib/checkout/stores
diff options
context:
space:
mode:
authortrisusilo48 <tri.susilo@altama.co.id>2024-11-15 13:32:26 +0700
committertrisusilo48 <tri.susilo@altama.co.id>2024-11-15 13:32:26 +0700
commit0d4278bd482d2ec2563b29cb3597eb8c7227a2d7 (patch)
treeedf8ef92c4dc1ea03e38aa547c5f7ec238010940 /src/lib/checkout/stores
parentb18d45c560d57c788d3646cf6be0beb6381ec0f7 (diff)
add hook state
Diffstat (limited to 'src/lib/checkout/stores')
-rw-r--r--src/lib/checkout/stores/stateCheckout.js11
1 files changed, 11 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..5d2904dd
--- /dev/null
+++ b/src/lib/checkout/stores/stateCheckout.js
@@ -0,0 +1,11 @@
+import { create } from "zustand";
+
+export const stateCheckout = create((set) => ({
+ checkWeigth : false,
+ hasFlashSale : false,
+ checkoutValidation : false,
+ setCheckWeigth : (checkWeigth) => set({ checkWeigth }),
+ setHasFlashSale : (hasFlashSale) => set({ hasFlashSale }),
+ setCheckoutValidation : (checkoutValidation) => set({ checkoutValidation }),
+
+})) \ No newline at end of file