import { Suspense } from "react";
import { Route, Routes } from "react-router-dom";
import "./assets/base.less";
import Nav from "./components/Nav";
import { commonRouters, lazyRouters } from "./router";
import { Guard } from "./router/Guard";
import { Toaster } from "react-hot-toast";
import Loading from "./components/Loading";
function App() {
return (
<>
{commonRouters.map((router) => (
{router.element}}
/>
))}
{lazyRouters.map((router) => (
}>
{}
}
/>
))}
404} />
>
);
}
export default App;