/** @format */

import ReactDOM from "react-dom/client";
import "./assets/styles/index.less";
import "virtual:svg-icons-register";
import { Provider as MobxProvider } from "mobx-react";
import { RootStore } from "@/store";
import routeConfig from "@/router/routes.tsx";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
const router = createBrowserRouter(routeConfig);
ReactDOM.createRoot(document.getElementById("root")!).render(
	<MobxProvider {...RootStore}>
		<RouterProvider router={router} />
	</MobxProvider>,
);
