From a98a9c2c79a29ca375499c636236d07742ce974d Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Mon, 16 Mar 2026 18:31:53 +0300 Subject: [PATCH] feat(Auth): create useAuthStore hook representing auth store using zustand --- src/features/auth/model/stores/authStore/authStore.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/features/auth/model/stores/authStore/authStore.ts diff --git a/src/features/auth/model/stores/authStore/authStore.ts b/src/features/auth/model/stores/authStore/authStore.ts new file mode 100644 index 0000000..1529e3f --- /dev/null +++ b/src/features/auth/model/stores/authStore/authStore.ts @@ -0,0 +1,9 @@ +import { create } from "zustand"; +import type { AuthStore } from "../../types/store"; + +export const useAuthStore = create()((set) => ({ + user: undefined, + status: "idle", + setUser: (user) => set({ user }), + setStatus: (status) => set({ status }), +}));