initial commit, boilerplate stuff
This commit is contained in:
13
src/contexts/AuthContext.ts
Normal file
13
src/contexts/AuthContext.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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: () => {},
|
||||
});
|
||||
Reference in New Issue
Block a user