synapse-admin/src/AppContext.tsx
Aine c698f57395
Add support for config from /.well-known/matrix/client (#126)
* Add support for config from /.well-known/matrix/client

* final fixes, refactoring, updated readme
2024-11-07 00:24:33 +02:00

6 lines
213 B
TypeScript

import { createContext, useContext } from "react";
import { Config } from "./components/config";
export const AppContext = createContext({});
export const useAppContext = () => useContext(AppContext) as Config;