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

const el = document.getElementById('recover-app')
if (el) {
  createRoot(el).render(
    <StrictMode>
      <RecoverForm
        recoverUrl={el.dataset.recoverUrl || ''}
        csrfToken={el.dataset.csrf || ''}
        siteKey={el.dataset.sitekey || ''}
      />
    </StrictMode>,
  )
}
