import { Routes, Route } from "react-router-dom";
import Home from "./pages/Home";
import JoinRoom from "./pages/JoinRoom";
import Share from "./pages/Share";
import Settings from "./pages/Settings";
import Pricing from "./pages/Pricing";
import Receive from "./pages/Receive";
import Inbox from "./pages/Inbox";

export default function App() {
  return (
    <Routes>
      <Route path="/" element={<Home />} />
      <Route path="/share" element={<Share />} />
      <Route path="/settings" element={<Settings />} />
      <Route path="/pricing" element={<Pricing />} />
      <Route path="/inbox" element={<Inbox />} />
      <Route path="/r/:id" element={<Receive />} />
      <Route path="/:code" element={<JoinRoom />} />
    </Routes>
  );
}
