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
|
|
|
|
2024-07-10 15:57:37 +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>
|
|
|
|
)
|
2024-07-10 15:57:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default App
|