import React from "react";
import JoinRoom from "./JoinRoom";
import WaitRoom from "./WaitRoom";
import ThreeJs from "./ThreeJs";
import BabylonJs from "./BabylonJs";
import { Routes, Route } from "react-router-dom";
import Mora from "./Mora";

export default function () {
  // FIXME: 这里Mora路由应该由每个房间指定一个路径
  return (
    <Routes>
      <Route path="/" element={<JoinRoom />} />
      <Route path="/:player/:passWd/:ip" element={<WaitRoom />} />
      <Route path="/mora" element={<Mora />} />
      <Route path="/three" element={<ThreeJs />} />
      <Route path="/babylon" element={<BabylonJs />} />
    </Routes>
  );
}
