import React from 'react';
import { Helmet } from 'react-helmet-async';
import i18next from 'i18next';
import { BrowserRouter } from 'react-router-dom';
import AppRoutes from './AppRoutes';

function App() {
  return (
    <>
      <BrowserRouter>
        <Helmet>
          <title>
            {i18next.t('app.title')}
          </title>
        </Helmet>
        <main className='l-page'>
          <AppRoutes />
        </main>
      </BrowserRouter>
    </>
  );
}

export default App;
