Create resource working

This commit is contained in:
Owen Schwartz
2024-10-19 16:19:47 -04:00
parent 0ff183796c
commit 091d649997
17 changed files with 721 additions and 130 deletions

View File

@@ -0,0 +1,11 @@
import { GetResourceResponse } from "@server/routers/resource/getResource";
import { createContext } from "react";
interface ResourceContextType {
resource: GetResourceResponse | null;
updateResource: (updatedResource: Partial<GetResourceResponse>) => Promise<void>;
}
const ResourceContext = createContext<ResourceContextType | undefined>(undefined);
export default ResourceContext;