import { createContext } from "react"; import User from "./../../interfaces/user.interface" export interface AuthContextType { user: User | null; loading: boolean; update: () => void; login: (email: string, password: string) => Promise<{ status: number }>; logout: () => Promise; } export const AuthContext = createContext(null);