2026-03-16 16:43:17 +01:00
|
|
|
import { Routes, Route } from 'react-router-dom';
|
2026-06-10 16:24:37 -04:00
|
|
|
import Layout from './components/Layout';
|
2026-03-16 16:43:17 +01:00
|
|
|
import Home from './pages/Home';
|
2026-06-10 16:24:37 -04:00
|
|
|
import Books from './pages/Books';
|
|
|
|
|
import Orders from './pages/Orders';
|
|
|
|
|
import Profile from './pages/Profile';
|
|
|
|
|
import NotFound from './pages/NotFound';
|
2026-03-16 16:43:17 +01:00
|
|
|
|
|
|
|
|
export default function App() {
|
|
|
|
|
return (
|
2026-06-10 16:24:37 -04:00
|
|
|
<Routes>
|
|
|
|
|
<Route path="/" element={<Layout />}>
|
|
|
|
|
<Route index element={<Home />} />
|
|
|
|
|
<Route path="books" element={<Books />} />
|
|
|
|
|
<Route path="orders" element={<Orders />} />
|
|
|
|
|
<Route path="profile" element={<Profile />} />
|
|
|
|
|
<Route path="*" element={<NotFound />} />
|
|
|
|
|
</Route>
|
|
|
|
|
</Routes>
|
2026-03-16 16:43:17 +01:00
|
|
|
);
|
|
|
|
|
}
|