import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './styles/global.css'
import App from './App.tsx'
import { AuthGate } from './components/AuthGate.tsx'

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <AuthGate>
      {(user, onLogout) => <App user={user} onLogout={onLogout} />}
    </AuthGate>
  </StrictMode>,
)
