import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import App from "@/app/App.jsx";
import { ErrorBoundary } from "@/app/ErrorBoundary.jsx";
import { AppProviders } from "@/app/providers.jsx";
import "./styles/tokens.css";
import "./styles/base.css";
import "./styles/app.css";

createRoot(document.getElementById("app")).render(
  <StrictMode>
    <AppProviders>
      <BrowserRouter>
        <ErrorBoundary>
          <App />
        </ErrorBoundary>
      </BrowserRouter>
    </AppProviders>
  </StrictMode>
);
