import { __ } from 'i18n'; import { api } from "@converse/headless/core"; import { html } from "lit"; import { renderAvatar } from 'shared/directives/avatar.js'; export default (o) => { const i18n_chat = __('Click to chat with %1$s (XMPP address: %2$s)', o.display_name, o.jid); const i18n_remove = __('Click to remove %1$s as a contact', o.display_name); return html` ${ renderAvatar(o.getAvatarData()) } ${ o.num_unread ? html`${ o.num_unread }` : '' } ${o.display_name} ${ api.settings.get('allow_contact_removal') ? html`` : '' }`; }