import type React from 'react' import {createContext} from 'react' import type {InstanceConfig} from "../utils/api" export type ConfigurationContextType = { configuration: InstanceConfig | undefined } export const ConfigurationContext = createContext({ configuration: undefined, }) export type AuthContextType = { isAuthenticated?: boolean setIsAuthenticated: React.Dispatch> } export const AuthenticatedContext = createContext({ isAuthenticated: undefined, setIsAuthenticated: () => { }, })