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

const el = document.getElementById('register-app')
if (el) {
  createRoot(el).render(
    <StrictMode>
      <RegisterForm
        registerUrl={el.dataset.registerUrl || ''}
        csrfToken={el.dataset.csrf || ''}
      />
    </StrictMode>,
  )
}
