import React from 'react';
import { Router } from 'react-router-dom';
import { Helmet } from 'react-helmet-async';
import i18next from 'i18next';
import history from './store/utils/history';
import Header from './components/Header/Header';
// import Sidebar from './components/Sidebar/Sidebar';
import AppRoutes from './AppRoutes';

const App = () => (

  <Router history={history}>
    <Helmet>
      <title>
        {i18next.t('app.title')}
      </title>
    </Helmet>
        <>
            <Header />
            {/* <Sidebar /> */}
            <AppRoutes />
        </>
  </Router>

  );

export default App;