text: import React from 'react';
  import { BrowserRouter, Switch, Route } from 'react-router-dom';
  
  import Main from './pages/Main';
  import Repository from './pages/Repository';
  
  export default function Routes() {
    return (
      <BrowserRouter>
        <Switch>
          <Route path="/" exact component={Main} />
          <Route path="/repository/:repo" component={Repository} />
        </Switch>
      </BrowserRouter>
    );
  }
  