import { __ } from 'i18n'; import { api } from "@converse/headless/core"; import { html } from "lit-html"; export default (o) => { const i18n_logout = __('Log out'); const i18n_change_status = __('Click to change your chat status'); const i18n_details = __('Show details about this chat client'); const show_settings_button = api.settings.get('show_client_info') || api.settings.get('allow_adhoc_commands'); return html`
${o.fullname} ${show_settings_button ? html`` : ''} ${api.settings.get('allow_logout') ? html`` : ''}
${o.status_message}
`};