text: import React from 'react';
  import PrivateRoute from './auth';
  import Login from './pages/login/Login';
  import NotFound from './pages/notFound/NotFound';
  import Registrar from './pages/registrar/Registrar';
  import Configuracoes from './components/configuracoes';
  import Home from './pages/home';
  import Hospitalar from './pages/hospitalar';
  import Animal from './pages/animal';
  import CriancasPCD from './pages/criancasPCD';
  import View from './pages/viewPage';
  import Info from './pages/info';
  import Terms from './pages/terms';
  import Navbar from './components/navBar/navBar';
  import {history} from './shared/history/history';
  import {Router, Route, Switch, Redirect} from 'react-router';
  
  
  
  function Routes( ){
  
      return(
      <>
          <Navbar></Navbar>
          <Router history={history} >
              <Switch>
                  <Route exact path="/login" render={(p) => <Login />}  />
                  <Route exact path="/registrar" render={(p) => <Registrar  />}  />
                  <Route exact path="/view/:id" component={View} ></Route>
                  <Route exact path="/info" component={Info} ></Route>
                  <Route exact path="/terms" component={Terms} ></Route>
                  <Route exact path="/"><Redirect to={{pathname: '/home'}} /></Route>
                  <PrivateRoute exact path="/home" component={Home} > </PrivateRoute>
                  <PrivateRoute exact path="/configuracoes" component={Configuracoes} > </PrivateRoute>
                  <PrivateRoute exact path="/home/hospitalar/:id" component={Hospitalar} > </PrivateRoute>
                  <PrivateRoute exact path="/home/animais/:id" component={Animal} > </PrivateRoute>
                  <PrivateRoute exact path="/home/criancas-e-especiais/:id" component={CriancasPCD} > </PrivateRoute>
                  <PrivateRoute component={NotFound} />
              </Switch>
          </Router>
      </>
      )
  }
  
  
  export default Routes;
  
  // render={(prop) => <IndexLogin {...props} />}