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

import { ProtectedRoute } from "@/auth/ProtectedRoute";
import { LandingShell } from "@/components/LandingShell";
import { LandingHomePage } from "@/pages/LandingHomePage";
import { LandingLoginPage } from "@/pages/LandingLoginPage";
import { LandingWorkspacePage } from "@/pages/LandingWorkspacePage";

export function App() {
  return (
    <Routes>
      <Route path="/" element={<LandingHomePage />} />
      <Route path="/login" element={<LandingLoginPage />} />
      <Route element={<ProtectedRoute />}>
        <Route element={<LandingShell />}>
          <Route path="/workspace" element={<LandingWorkspacePage />} />
        </Route>
      </Route>
    </Routes>
  );
}
