mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-14 08:56:39 +00:00
Merge branch 'hp-multi-client' into auth-providers-clients
This commit is contained in:
11
src/contexts/clientContext.ts
Normal file
11
src/contexts/clientContext.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user