Create resource working

This commit is contained in:
Owen Schwartz 2024-10-19 16:19:47 -04:00
parent 0ff183796c
commit 091d649997
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
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;