Add "Media" tab for rooms (#196)
* 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
This commit is contained in:
committed by
GitHub
parent
2fa5600d24
commit
402457640c
7
src/Context.tsx
Normal file
7
src/Context.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { createContext, useContext } from "react";
|
||||
|
||||
import { Config } from "./utils/config";
|
||||
|
||||
export const AppContext = createContext<Config>({} as Config);
|
||||
|
||||
export const useAppContext = () => useContext(AppContext) as Config;
|
||||
Reference in New Issue
Block a user