Download src/components/router/AppRouter.tsx from Jessedbrown/daisy-client: direct link, hf CLI and curl.
- Browser
- Download file 339 Bytes
-
https://huggingface.co/Jessedbrown/daisy-client/resolve/main/src/components/router/AppRouter.tsx
- Command line
-
hf download hf://Jessedbrown/daisy-client/src/components/router/AppRouter.tsx
-
curl -L -o AppRouter.tsx https://huggingface.co/Jessedbrown/daisy-client/resolve/main/src/components/router/AppRouter.tsx
339 Bytes
| import { Route, Routes } from 'react-router-dom'; | |
| import { routes } from '@/config/routes'; | |
| export default function AppRouter() { | |
| return ( | |
| <Routes> | |
| {routes.map((route) => ( | |
| <Route | |
| key={route.path} | |
| path={route.path} | |
| element={<route.component />} | |
| /> | |
| ))} | |
| </Routes> | |
| ); | |
| } | |