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

import { PAGES } from 'config'

import { HomePage } from 'features/HomePage'

export const AuthenticatedApp = () => (
  <Switch>
    <Route path={PAGES.home}>
      <HomePage />
    </Route>

    <Redirect to={PAGES.home} />
  </Switch>
)
