import React from 'react';
import { Redirect, Route, Switch } from 'react-router-dom';
import PrivateRoute from '../helpers/privateRoute';

import JKPeople from '../components/page/JKPeople';
import JKNotifications from '../components/page/JKNotifications';

const JKDashboardRoutes = () => (
  
  <Switch>
    <PrivateRoute path="/friends" component={JKPeople} />
    <PrivateRoute path="/notifications" component={JKNotifications} />
    {/*Redirect*/}
    <Redirect to="/errors/404" />
  </Switch>
);


export default JKDashboardRoutes;
