mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-06 10:00:34 +00:00
initial setup for viewing domain details
This commit is contained in:
11
src/contexts/domainContext.ts
Normal file
11
src/contexts/domainContext.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user