fosrl.pangolin/src/contexts/userContext.ts

12 lines
323 B
TypeScript
Raw Normal View History

2024-10-12 21:30:35 -04:00
import { GetUserResponse } from "@server/routers/user";
import { createContext } from "react";
2024-12-23 23:59:15 -05:00
interface UserContextType {
user: GetUserResponse;
updateUser: (updatedUser: Partial<GetUserResponse>) => void;
}
const UserContext = createContext<UserContextType | undefined>(undefined);
export default UserContext;