mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-12-18 05:51:50 +03:00
c698f57395
* Add support for config from /.well-known/matrix/client * final fixes, refactoring, updated readme
6 lines
213 B
TypeScript
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;
|