import React from 'react';
import ReactDOM from 'react-dom/client';
import { HashRouter } from 'react-router-dom';
import App from './App';
import { AuthProvider } from './auth/AuthProvider';
import { InwinkContextProvider } from './context/InwinkContextProvider';
import { ToastProvider } from './components/toast/ToastProvider';
import { ConfirmProvider } from './components/ConfirmDialog';
import './styles.css';

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <HashRouter>
      <AuthProvider>
        <InwinkContextProvider>
          <ToastProvider>
            <ConfirmProvider>
              <App />
            </ConfirmProvider>
          </ToastProvider>
        </InwinkContextProvider>
      </AuthProvider>
    </HashRouter>
  </React.StrictMode>,
);
