import React from 'react';
import { Redirect, Route, Switch } from 'react-router-dom';

import {
  //LOGIN_PAGE,
  HOME_PAGE,
  //FORGOT_PASSWORD_PAGE,
  SCRAPE_RESULTS_PAGE,
  NOT_FOUND_PAGE,
  ERROR_PAGE,
  BASE_PAGE,
} from './constants/pages';

//import LoginPage from './pages/LoginPage/LoginPage';
import HomePage from './pages/HomePage/HomePage';
import ScrapeResultsPage from './pages/ScrapeResults/ScrapeResultsPage';
import NotFoundPage from './pages/ErrorPages/NotFoundPage';
import ErrorPage from './pages/ErrorPages/ErrorPage';
//import ForgotPasswordPage from './pages/ForgotPasswordPage/ForgotPasswordPage';
//import PrivateRoute from './components/Router/PrivateRoute';

const AppRoutes = () => (
  <div className="container content">
    <Switch>
      <Route exact path={BASE_PAGE} component={HomePage} />
      <Route exact path={HOME_PAGE} component={HomePage} />
      <Route exact path={SCRAPE_RESULTS_PAGE} component={ScrapeResultsPage} />
      {/* <Route exact path={LOGIN_PAGE} component={LoginPage} /> */}
      <Route path={NOT_FOUND_PAGE} component={NotFoundPage} />
      <Route path={ERROR_PAGE} component={ErrorPage} />
      {/* <Route path={FORGOT_PASSWORD_PAGE} component={ForgotPasswordPage} /> */}
      {/* <PrivateRoute
        exact
        path={HOME_PAGE}
        component={HomePage}
      /> */}
      <Redirect from="*" to={NOT_FOUND_PAGE} />
    </Switch>
  </div>
);


export default AppRoutes;
