text: import React, { useEffect, lazy } from 'react'
  // import PrevetRouter from './PrivateRoute'
  
  import { HashRouter, Redirect, Route, Switch } from 'react-router-dom'
  import './scss/style.scss'
  
  const loading = (
    <div className="pt-3 text-center">
      <div className="sk-spinner sk-spinner-pulse"></div>
    </div>
  )
  
  // Containers
  const DefaultLayout = lazy(() => import('./layout/DefaultLayout'))
  
  // Pages
  const Login = lazy(() => import('./views/pages/login/Login'))
  const Register = lazy(() => import('./views/pages/register/Register'))
  const Page404 = lazy(() => import('./views/pages/page404/Page404'))
  const Page500 = lazy(() => import('./views/pages/page500/Page500'))
  
  function App() {
    return (
      <HashRouter>
        <React.Suspense fallback={loading}>
          <Switch>
            <Route exact path="/login" name="Login Page" render={(props) => <Login {...props} />} />
            <Route
              exact
              path="/register"
              name="Register Page"
              render={(props) => <Register {...props} />}
            />
            <Route exact path="/404" name="Page 404" render={(props) => <Page404 {...props} />} />
            <Route exact path="/500" name="Page 500" render={(props) => <Page500 {...props} />} />
  
            <Route path="/" name="Home" render={(props) => <DefaultLayout {...props} />} />
          </Switch>
        </React.Suspense>
      </HashRouter>
    )
  }
  
  export default App
  