import React from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter, Routes, Route } from "react-router-dom"; // <-- Burası önemli
import HomePage from "./pages/HomePage";
import "./global.css";
import DealPage from "./pages/DealPage";
import SubmitDealPage from "./pages/SubmitDealPage";
ReactDOM.createRoot(document.getElementById("root")!).render(
  <React.StrictMode>
    <BrowserRouter>
      <Routes>
        <Route path="/" element={<HomePage />} />
        <Route path="/deal/:id" element={<DealPage />} />
    <Route path="/submit-deal" element={<SubmitDealPage />} />

      </Routes>
    </BrowserRouter>
  </React.StrictMode>
);
