import { html, Component } from "../lib/index.js"; import linkify from "../lib/linkify.js"; export default class RegisterForm extends Component { state = { code: "", }; constructor(props) { super(props); this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } handleChange(event) { let target = event.target; let value = target.type == "checkbox" ? target.checked : target.value; this.setState({ [target.name]: value }); } handleSubmit(event) { event.preventDefault(); this.props.onSubmit(this.state.code); } render() { return html`

Your account ${this.props.account} has been created, but a verification code is required to complete the registration:
${linkify(this.props.message)}



`; } }