Created the Content.jsx

This commit is contained in:
Mathias Wagner 2023-05-30 18:13:39 +02:00
parent 239d716018
commit 69b23e2e64
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -0,0 +1,13 @@
import "./styles.sass";
import {routes} from "@/common/routes";
import {Route, Routes} from "react-router-dom";
export const Content = () => (
<div className="content-wrapper">
<Routes>
{Object.keys(routes).map((route) => (routes[route].map((route) => (
<Route exact path={route.path} element={route.component}/>
))))}
</Routes>
</div>
)