import { BrowserRouter, Route, Routes } from "react-router-dom";

import { AdminButton } from "./components/AdminButton";
import { DonePage } from "./routes/DonePage";
import { HomePage } from "./routes/HomePage";
import { PlayPage } from "./routes/PlayPage";

export default function App() {
  return (
    <BrowserRouter>
      <AdminButton />
      <Routes>
        <Route path="/" element={<HomePage />} />
        <Route path="/play/:sessionId" element={<PlayPage />} />
        <Route path="/done/:sessionId" element={<DonePage />} />
      </Routes>
    </BrowserRouter>
  );
}
