diff --git a/web/components/layouts/Main/Main.tsx b/web/components/layouts/Main/Main.tsx index 1aa380d05..709a34c20 100644 --- a/web/components/layouts/Main/Main.tsx +++ b/web/components/layouts/Main/Main.tsx @@ -11,6 +11,7 @@ import { isChatAvailableSelector, clientConfigStateAtom, fatalErrorStateAtom, + appStateAtom, } from '../../stores/ClientConfigStore'; import { Content } from '../../ui/Content/Content'; import { Header } from '../../ui/Header/Header'; @@ -22,6 +23,7 @@ import { ServerRenderedHydration } from '../../ServerRendered/ServerRenderedHydr import { Theme } from '../../theme/Theme'; import styles from './Main.module.scss'; import { PushNotificationServiceWorker } from '../../workers/PushNotificationServiceWorker/PushNotificationServiceWorker'; +import { AppStateOptions } from '../../stores/application-state'; const lockBodyStyle = ` body { @@ -46,9 +48,11 @@ export const Main: FC = () => { const { name, title, customStyles } = clientConfig; const isChatAvailable = useRecoilValue(isChatAvailableSelector); const fatalError = useRecoilValue(fatalErrorStateAtom); + const appState = useRecoilValue(appStateAtom); const layoutRef = useRef(null); const { chatDisabled } = clientConfig; + const { videoAvailable } = appState; useEffect(() => { setupNoLinkReferrer(layoutRef.current); @@ -137,7 +141,12 @@ export const Main: FC = () => {