import { create } from 'zustand'; import { Session } from 'next-auth'; interface AuthStore { session: Session | null; isLoading: boolean; setSession: (session: Session | null) => void; setLoading: (isLoading: boolean) => void; } export const useAuthStore = create((set) => ({ session: null, isLoading: true, setSession: (session) => set({ session }), setLoading: (isLoading) => set({ isLoading }), }));