text: import React from 'react';
  import { BrowserRouter, Switch, Route } from 'react-router-dom';
  
  import Logon from './pages/Logon';
  import Register from './pages/Register';
  import Profile from './pages/Profile';
  import NewIncident from './pages/NewIncident';
  import EditIncident from './pages/EditIncident';
  
  export default function Routes() {
    return (
      <BrowserRouter>
        <Switch>
          <Route path="/" exact component={Logon} />
          <Route path="/register" exact component={Register} />
          <Route path="/profile" exact component={Profile} />
          <Route path="/incidents/new" exact component={NewIncident} />
          <Route path="/incident/edit/:id" exact component={EditIncident} />
        </Switch>
      </BrowserRouter>
    );
  }
  