mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-02 08:09:10 +00:00
12 lines
355 B
TypeScript
12 lines
355 B
TypeScript
import { GetClientResponse } from "@server/routers/client/getClient";
|
|
import { createContext } from "react";
|
|
|
|
interface ClientContextType {
|
|
client: GetClientResponse;
|
|
updateClient: (updatedClient: Partial<GetClientResponse>) => void;
|
|
}
|
|
|
|
const ClientContext = createContext<ClientContextType | undefined>(undefined);
|
|
|
|
export default ClientContext;
|