import CssBaseline from "@mui/material/CssBaseline";
import { ThemeProvider } from "@mui/material/styles";
import React from "react";
import { createRoot } from "react-dom/client";
import { ToastProvider } from "@/shared/ui/ToastProvider.jsx";
import { theme } from "@/theme.js";
import { FinanceApp } from "./FinanceApp.jsx";
import "@/styles/tokens.css";
import "@/styles/shared-ui.css";
import "./styles/index.css";

createRoot(document.getElementById("finance-root")).render(
  <React.StrictMode>
    <ThemeProvider theme={theme}>
      <ToastProvider>
        <CssBaseline />
        <FinanceApp />
      </ToastProvider>
    </ThemeProvider>
  </React.StrictMode>
);
