2026-04-13 08:00:48 +00:00
|
|
|
import { BrowserRouter, Routes, Route, Navigate } from "react-router-dom";
|
|
|
|
|
import AppLayout from "./components/layout/AppLayout";
|
|
|
|
|
|
|
|
|
|
function EmptyState() {
|
2026-04-13 07:31:24 +00:00
|
|
|
return (
|
2026-04-13 08:00:48 +00:00
|
|
|
<div className="flex items-center justify-center h-full text-gray-400">
|
|
|
|
|
<p>Select a project or create a new one</p>
|
2026-04-13 07:37:19 +00:00
|
|
|
</div>
|
2026-04-13 07:31:24 +00:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-13 08:00:48 +00:00
|
|
|
function App() {
|
|
|
|
|
return (
|
|
|
|
|
<BrowserRouter>
|
|
|
|
|
<Routes>
|
|
|
|
|
<Route element={<AppLayout />}>
|
|
|
|
|
<Route index element={<EmptyState />} />
|
|
|
|
|
<Route path="/projects/new" element={<div className="p-8">Create project (coming next)</div>} />
|
|
|
|
|
<Route path="/projects/:projectId" element={<div className="p-8">Project dashboard (coming next)</div>} />
|
|
|
|
|
<Route path="/projects/:projectId/edit" element={<div className="p-8">Edit project (coming next)</div>} />
|
|
|
|
|
<Route path="*" element={<Navigate to="/" replace />} />
|
|
|
|
|
</Route>
|
|
|
|
|
</Routes>
|
|
|
|
|
</BrowserRouter>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-13 07:31:24 +00:00
|
|
|
export default App;
|