1 import React from 'react';
2 import { Helmet } from 'react-helmet';
3 import { useTranslation } from 'react-i18next';
5 import Routes from './Routes';
6 import AlttpBaseRomProvider from '../helpers/AlttpBaseRomContext';
7 import { UserProvider } from '../hooks/user';
8 import i18n from '../i18n';
11 const { t } = useTranslation();
13 React.useEffect(() => {
14 window.Echo.channel('App.Control')
15 .listen('PleaseRefresh', () => {
19 window.Echo.leave('App.Control');
23 return <AlttpBaseRomProvider>
26 <html lang={i18n.language} />
27 <title>{t('general.appName')}</title>
28 <meta name="description" content={t('general.appDescription')} />
32 </AlttpBaseRomProvider>;