// frontend/src/App.jsx

import React from "react";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import Layout from "./Layout";
import Dashboard from "./pages/Dashboard";
import History from "./pages/History";

export default function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route
          path="/"
          element={
            <Layout currentPageName="Dashboard">
              <Dashboard />
            </Layout>
          }
        />
        <Route
          path="/history"
          element={
            <Layout currentPageName="History">
              <History />
            </Layout>
          }
        />
      </Routes>
    </BrowserRouter>
  );
}
