import { __ } from 'i18n'; import { api } from "@converse/headless/core"; import { html } from "lit"; export default (el) => { const i18n_nickname = __('Nickname'); const i18n_join = el.model?.isEntered() ? __('Change nickname') : __('Enter groupchat'); const i18n_heading = api.settings.get('muc_show_logs_before_join') ? __('Choose a nickname to enter') : __('Please choose your nickname'); const validation_message = el.model?.get('nickname_validation_message'); return html`
el.submitNickname(ev)}>

${validation_message}

`; }