mirror of
https://github.com/hanzo-io/team.git
synced 2026-10-30 18:56:23 +00:00
10 lines
279 B
TypeScript
10 lines
279 B
TypeScript
import { createContext, useContext } from "react";
|
|
import { SiteInformation } from "types/SiteInformation";
|
|
|
|
export const SiteContext = createContext<SiteInformation | null>(null)
|
|
|
|
const useSiteContext = () => {
|
|
return useContext(SiteContext)
|
|
}
|
|
|
|
export default useSiteContext |