import React from "react";
import Layout from "./pages/Layout";
import Dashboard from "./pages/Dashboard";
import UserManagement from "./pages/UserManagement";
import Analytics from "./pages/Analytics";
import Logs from "./pages/Logs";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";

function App() {
  return (
    <Router>
      <Layout>
        <Routes>
          <Route path="/admin-web/" element={<Dashboard />} />
          <Route path="/admin-web/user-management" element={<UserManagement />} />
          <Route path="/admin-web/analytics" element={<Analytics />} />
          <Route path="/admin-web/logs" element={<Logs />} />
        </Routes>
      </Layout>
    </Router>
  );
}

export default App;