mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-01 08:34:53 +02:00
11 lines
323 B
TypeScript
11 lines
323 B
TypeScript
import { GetUserResponse } from "@server/routers/user";
|
|
import { createContext } from "react";
|
|
|
|
interface UserContextType {
|
|
user: GetUserResponse;
|
|
updateUser: (updatedUser: Partial<GetUserResponse>) => void;
|
|
}
|
|
|
|
const UserContext = createContext<UserContextType | undefined>(undefined);
|
|
|
|
export default UserContext;
|