import MainProvider from "@/providers/main.tsx";
import { Toaster } from "@/shared/ui/sonner.tsx";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import App from "./App.tsx";
import "./index.css";

createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <MainProvider>
      <BrowserRouter>
        <App />
        <Toaster />
      </BrowserRouter>
    </MainProvider>
  </StrictMode>,
);
