import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import HomePage from "./pages/HomePage";
import MigrantProfilePage from "./pages/MigrantProfilePage";
import NotFoundPage from "./pages/NotFoundPage";
import "./App.css";
import LoginPage from "./components/LoginPage";
import Migrants from "./components/Migrants";
import ProfileSettings from "./components/ui/ProfileSettings";
import AdminDashboardPage from "./pages/AdminDashboardPage";

function App() {
  return (
    <Router>
      <Routes>
        <Route path="/admin/settings/profile" element={<ProfileSettings />} />
        <Route path="/admin/migrants" element={<Migrants />} />
        <Route path="/admin" element={<AdminDashboardPage />} />
        <Route path="/login" element={<LoginPage />} />
        <Route path="/" element={<HomePage />} />
        <Route path="/migrant/:id" element={<MigrantProfilePage />} />
        <Route path="*" element={<NotFoundPage />} />
      </Routes>
    </Router>
  );
}

export default App;
