mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-18 19:06:38 +00:00
Add site context?
This commit is contained in:
7
src/hooks/useSiteContext.ts
Normal file
7
src/hooks/useSiteContext.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { SiteContext } from "@app/contexts/siteContext";
|
||||
import { useContext } from "react";
|
||||
|
||||
export function useSiteContext() {
|
||||
const site = useContext(SiteContext);
|
||||
return site;
|
||||
}
|
||||
Reference in New Issue
Block a user