mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-01 07:39:09 +00:00
12 lines
311 B
TypeScript
12 lines
311 B
TypeScript
import { GetOrgResponse } from "@server/routers/org";
|
|
import { createContext } from "react";
|
|
|
|
interface OrgContextType {
|
|
org: GetOrgResponse;
|
|
updateOrg: (updateOrg: Partial<GetOrgResponse>) => void;
|
|
}
|
|
|
|
const OrgContext = createContext<OrgContextType | undefined>(undefined);
|
|
|
|
export default OrgContext;
|