feat(Auth): create useAuthStore hook representing auth store using zustand

This commit is contained in:
Ilia Mashkov
2026-03-16 18:31:53 +03:00
parent 5acb326c03
commit a98a9c2c79

View File

@@ -0,0 +1,9 @@
import { create } from "zustand";
import type { AuthStore } from "../../types/store";
export const useAuthStore = create<AuthStore>()((set) => ({
user: undefined,
status: "idle",
setUser: (user) => set({ user }),
setStatus: (status) => set({ status }),
}));