blob: 64191ac3e66485925d5cb990ca2f92bd0d867f46 [file] [log] [blame]
22301008af173152025-06-15 10:46:25 +08001import React from 'react'
2import { Routes, Route, Navigate } from 'react-router-dom'
3import UploadPage from '../components/UploadPage'
4import PlaceholderPage from '../components/PlaceholderPage'
5import HomeFeed from '../components/HomeFeed'
6
7export default function AppRouter() {
8 return (
9 <Routes>
10 <Route path="/" element={<Navigate to="/dashboard" replace />} />
11
12 <Route path="/home" element={<HomeFeed />} />
13 <Route path="/notebooks" element={<PlaceholderPage pageId="notebooks" />} />
14 <Route path="/activity" element={<PlaceholderPage pageId="activity" />} />
15 <Route path="/notes" element={<PlaceholderPage pageId="notes" />} />
16 <Route path="/creator" element={<PlaceholderPage pageId="creator" />} />
17 <Route path="/journal" element={<PlaceholderPage pageId="journal" />} />
18
19 <Route path="/dashboard/*" element={<UploadPage />} />
20
21 <Route path="*" element={<PlaceholderPage pageId="home" />} />
22 </Routes>
23 )
24}