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

const el = document.getElementById('change-password-app')
if (el) {
  createRoot(el).render(
    <StrictMode>
      <ChangePasswordForm
        url={el.dataset.url || ''}
        csrfToken={el.dataset.csrf || ''}
        loginUrl={el.dataset.loginUrl || '/es/log-in/'}
      />
    </StrictMode>,
  )
}
