import React from "react";
import {BrowserRouter, Route, Routes} from "react-router-dom";
import MainLobby from "../layout/pages/MainLobby";
import NotFound from "../layout/pages/NotFound";
import Room from "../layout/pages/Room";
import Rooms from "../layout/pages/Rooms";

const Router = () => {
    return (
        <BrowserRouter>
            <Routes>
                <Route path="/" element={<MainLobby/>}/>
                <Route path="rooms" element={<Rooms/>}/>
                <Route path="room/:roomId" element={<Room/>}/>
                <Route path="*" element={<NotFound/>}/>
            </Routes>
        </BrowserRouter>
    );
}

export default Router;