File
Blob: src/client/App.tsx
| 1 | import { Navigate, Route, Routes } from "react-router-dom"; |
| 2 | import { AppShell } from "@/client/components/app-shell"; |
| 3 | import { AdminLogin } from "@/client/components/admin-login"; |
| 4 | import { ExternalLinkRedirect } from "@/client/components/external-link-redirect"; |
| 5 | import { AboutPage, InboxPage, LandingPage } from "@/client/pages"; |
| 6 | |
| 7 | export const App = () => ( |
| 8 | <Routes> |
| 9 | <Route element={<AppShell />}> |
| 10 | <Route path="/" element={<LandingPage />} /> |
| 11 | <Route path="/create" element={<Navigate to="/" replace />} /> |
| 12 | <Route path="/about" element={<AboutPage />} /> |
| 13 | <Route path="/admin" element={<AdminLogin />} /> |
| 14 | <Route path="/link" element={<ExternalLinkRedirect />} /> |
| 15 | <Route path="/inbox/:address" element={<InboxPage />} /> |
| 16 | </Route> |
| 17 | </Routes> |
| 18 | ); |