mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-09 06:26:40 +00:00
11 lines
354 B
TypeScript
11 lines
354 B
TypeScript
import { GetDomainResponse } from "@server/routers/domain/getDomain";
|
|
import { createContext } from "react";
|
|
|
|
interface DomainContextType {
|
|
domain: GetDomainResponse;
|
|
updateDomain: (updatedDomain: Partial<GetDomainResponse>) => void;
|
|
}
|
|
|
|
const DomainContext = createContext<DomainContextType | undefined>(undefined);
|
|
|
|
export default DomainContext; |