14 lines
346 B
TypeScript
14 lines
346 B
TypeScript
import { createContext } from "react";
|
|
|
|
import { type AuthResponse } from "../model.ts";
|
|
|
|
export interface AuthContextValue {
|
|
authResponse: AuthResponse | null;
|
|
setAuthResponse: (authResponse: AuthResponse | null) => void;
|
|
}
|
|
|
|
export const AuthContext = createContext<AuthContextValue>({
|
|
authResponse: null,
|
|
setAuthResponse: () => {},
|
|
});
|