import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { ChangeEmailForm } from '../components/ChangeEmailForm'

const el = document.getElementById('change-email-app')
if (el) {
  createRoot(el).render(
    <StrictMode>
      <ChangeEmailForm url={el.dataset.url || ''} csrfToken={el.dataset.csrf || ''} />
    </StrictMode>,
  )
}
