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

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

export default Router;