degmods.com/src/App.tsx

22 lines
434 B
TypeScript
Raw Normal View History

2024-07-11 11:45:59 +00:00
import { Route, Routes } from 'react-router-dom'
2024-07-10 18:31:54 +00:00
import { Layout } from './layout'
2024-07-11 11:45:59 +00:00
import { routes } from './routes'
2024-07-10 18:31:54 +00:00
function App() {
2024-07-11 11:45:59 +00:00
return (
<Routes>
<Route element={<Layout />}>
{routes.map((route, index) => (
<Route
key={route.path + index}
path={route.path}
element={route.element}
/>
))}
</Route>
</Routes>
)
}
export default App