import { BrowserRouter, Routes, Route } from 'react-router-dom';
import { Layout } from './components/layout/Layout';
import { Home } from './pages/Home';
import { LegislatorDetail } from './pages/LegislatorDetail';

export default function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route element={<Layout />}>
          <Route path="/" element={<Home />} />
          <Route path="/legislator/:id" element={<LegislatorDetail />} />
        </Route>
      </Routes>
    </BrowserRouter>
  );
}