import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App'

// Service worker registration is handled inside <PWAInstall /> via the
// `useRegisterSW` hook from `virtual:pwa-register/react`. We removed the
// hand-rolled `navigator.serviceWorker.ready` listener that used to live here
// because (a) it didn't actually register the SW — it just listened for updates
// — and (b) it duplicated state the plugin already exposes via the hook.

createRoot(document.getElementById('root')).render(
  <StrictMode>
    <App />
  </StrictMode>,
)
