import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import App from './App';
import './styles/global.css';
import { SettingsProvider } from './contexts/SettingsContext';
import { PlayerProvider } from './contexts/PlayerContext';
import { GameProvider } from './contexts/GameContext';

ReactDOM.createRoot(document.getElementById('root')).render(
  <React.StrictMode>
    <BrowserRouter>
      <SettingsProvider>
        <PlayerProvider>
          <GameProvider>
            <App />
          </GameProvider>
        </PlayerProvider>
      </SettingsProvider>
    </BrowserRouter>
  </React.StrictMode>
);
