import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import App from './App.jsx';
import { AuthProvider } from './context/AuthContext.jsx';
import { InvestisseurProvider } from './context/InvestisseurContext.jsx';
import { ThemeProvider } from './context/ThemeContext.jsx';
import { UiProvider } from './context/UiContext.jsx';
import './styles.css';

ReactDOM.createRoot(document.getElementById('root')).render(
  <React.StrictMode>
    <ThemeProvider>
      <UiProvider>
        <BrowserRouter>
          <AuthProvider>
            <InvestisseurProvider>
              <App />
            </InvestisseurProvider>
          </AuthProvider>
        </BrowserRouter>
      </UiProvider>
    </ThemeProvider>
  </React.StrictMode>
);
