import { BrowserRouter, Routes, Route } from "react-router";
import Index from "./pages/Index";
import NotFound from "./pages/NotFound";
import AboutPage from "@/modules/about-page";
import ContactPageMapSplit from "@/modules/contact-page-map-split";
import Projects from "./pages/Projects";

export const AppRoutes = () => {
  return (
    <Routes>
      <Route path="/" element={<Index />} />
      <Route path="/about" element={<AboutPage />} />
      <Route path="/projects" element={<Projects />} />
      <Route path="/contact" element={<ContactPageMapSplit />} />


      <Route path="*" element={<NotFound />} />
    </Routes>
  );
};

export const Router = () => {
  return (
    <BrowserRouter>
      <AppRoutes />
    </BrowserRouter>
  );
};
