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:
Borislav Pantaleev
2024-12-09 21:56:45 +02:00
committed by GitHub
parent 2fa5600d24
commit 402457640c
18 changed files with 190 additions and 22 deletions

7
src/Context.tsx Normal file
View 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;