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