import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import { AuthProvider } from './providers/AuthProvider'
import ToastProvider from '@/components/ui/Toast'
import './styles/global.css'
import V2Router from './router/index.jsx'

createRoot(document.getElementById('root')).render(
  <StrictMode>
    <BrowserRouter>
      <AuthProvider>
        <ToastProvider>
          <V2Router />
        </ToastProvider>
      </AuthProvider>
    </BrowserRouter>
  </StrictMode>
)
