2023-07-18 13:50:46 +02:00

17 lines
426 B
TypeScript

import React from "react";
import {Route, Routes} from "react-router-dom";
import Layout from "./components/layout";
import AppRoutes from "./AppRoutes";
import "./index.css";
export const App: Component = () => (
<Layout>
<Routes>
{AppRoutes.map((route, index) => {
const {element, ...rest} = route;
return <Route key={index} {...rest} element={element}/>;
})}
</Routes>
</Layout>
);