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,10 @@
import ResourceContext from "@app/contexts/resourceContext";
import { useContext } from "react";
export function useResourceContext() {
const context = useContext(ResourceContext);
if (context === undefined) {
throw new Error('useResourceContext must be used within a ResourceProvider');
}
return context;
}