import React, { useContext } from "react"; import { ProjectConfig } from "./useBuildProjectConfig"; export const ProjectConfigContext = React.createContext({} as ProjectConfig); export const useProjectConfig = () => useContext(ProjectConfigContext); export function ProjectConfigProvider({ children, config }: { children: React.ReactNode, config: ProjectConfig }) { return {children} ; }