mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-13 08:26:40 +00:00
enable 2fa flow
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
import { GetUserResponse } from "@server/routers/user";
|
||||
import { createContext } from "react";
|
||||
|
||||
export const UserContext = createContext<GetUserResponse | null>(null);
|
||||
interface UserContextType {
|
||||
user: GetUserResponse;
|
||||
updateUser: (updatedUser: Partial<GetUserResponse>) => void;
|
||||
}
|
||||
|
||||
const UserContext = createContext<UserContextType | undefined>(undefined);
|
||||
|
||||
export default UserContext;
|
||||
|
||||
Reference in New Issue
Block a user