mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-11 15:36:38 +00:00
11 lines
346 B
TypeScript
11 lines
346 B
TypeScript
import { GetSiteResponse } from "@server/routers/site/getSite";
|
|
import { createContext } from "react";
|
|
|
|
interface SiteContextType {
|
|
site: GetSiteResponse | null;
|
|
updateSite: (updatedSite: Partial<GetSiteResponse>) => Promise<void>;
|
|
}
|
|
|
|
const SiteContext = createContext<SiteContextType | undefined>(undefined);
|
|
|
|
export default SiteContext; |