import { useState } from 'react' import PropTypes from 'prop-types' import RegisterForm from './register-form' import OLRow from '@/shared/components/ol/ol-row' import OLCol from '@/shared/components/ol/ol-col' import OLCard from '@/shared/components/ol/ol-card' import Notification from '@/shared/components/notification' function UserActivateRegister() { const [emails, setEmails] = useState([]) const [failedEmails, setFailedEmails] = useState([]) const [registerError, setRegisterError] = useState(false) const [registrationSuccess, setRegistrationSuccess] = useState(false) return (

Register new users

{registerError ? ( ) : null} {registrationSuccess ? ( <>
) : null}
) } function UserActivateError({ failedEmails }) { return (
) } function SuccessfulRegistrationMessage() { return (

We've sent out welcome emails to the registered users.

You can also manually send them URLs below to allow them to reset their password and log in for the first time.

(Password reset tokens will expire after one week and the user will need registering again).

) } function DisplayEmailsList({ emails }) { return ( {emails.map(user => ( ))}
Email Set Password Url
{user.email} {user.setNewPasswordUrl}
) } DisplayEmailsList.propTypes = { emails: PropTypes.array, } UserActivateError.propTypes = { failedEmails: PropTypes.array, } export default UserActivateRegister