
* WIP on Media tab to rooms * handle error for downloadFile if it's missing * Add warning message for rooms Media tab * Fix error message for download media of rooms * update readme
7 lines
226 B
TypeScript
7 lines
226 B
TypeScript
import { createContext, useContext } from "react";
|
|
|
|
import { Config } from "./utils/config";
|
|
|
|
export const AppContext = createContext<Config>({} as Config);
|
|
|
|
export const useAppContext = () => useContext(AppContext) as Config; |