| import { createContext } from "react"; | |
| interface AuthContextType { | |
| isAuthenticated: boolean; | |
| login: (token: string) => void; | |
| logout: () => void; | |
| } | |
| export const AuthContext = createContext<AuthContextType | null>(null); | |
| import { createContext } from "react"; | |
| interface AuthContextType { | |
| isAuthenticated: boolean; | |
| login: (token: string) => void; | |
| logout: () => void; | |
| } | |
| export const AuthContext = createContext<AuthContextType | null>(null); | |