import { createContext, useContext } from "react"; export interface ConfigContextType { immichURL: string; exImmichUrl: string; version?: string; geminiEnabled: boolean; } const ConfigContext = createContext({ immichURL: "", exImmichUrl: "", version: "", geminiEnabled: false, }); export default ConfigContext; export const useConfig = () => { const context = useContext(ConfigContext) as ConfigContextType; return context; }