![Shaun Wu](/assets/img/avatar_default.png)
Had to make various other changes due to incompatibilities. - Use the new `lit` package instead of `lit-html` or `lit-element` - Drop `haunted` since it breaks the rules by specifying `type: module` but then doesn't import with file extensions - Use Sass Dart instead of node-sass (fixes #2445) - Upgrade Karma
9 lines
396 B
JavaScript
9 lines
396 B
JavaScript
import { __ } from 'i18n';
|
|
import { api } from "@converse/headless/core";
|
|
import { html } from "lit";
|
|
|
|
export default (o) => {
|
|
const i18n_toggle = api.connection.connected() ? __('Chat Contacts') : __('Toggle chat');
|
|
return html`<a id="toggle-controlbox" class="toggle-controlbox ${o.hide ? 'hidden' : ''}" @click=${o.onClick}><span class="toggle-feedback">${i18n_toggle}</span></a>`;
|
|
}
|