
import { createRoot } from 'react-dom/client';
import { BrowserRouter as Router } from 'react-router-dom';
import { SessionProvider } from './contexts/SessionProvider';
import { AuthProvider } from './contexts/AuthContext';
import { Toaster } from "@/components/ui/toaster";
import App from './App.tsx';
import './index.css';

createRoot(document.getElementById("root")!).render(
  <Router>
    <SessionProvider>
      <AuthProvider>
        <App />
        <Toaster />
      </AuthProvider>
    </SessionProvider>
  </Router>
);
