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