f3efbba26c
More work on making bottom panel sub-components declarative - Handle auto-completion in the converse-muc-message-form element - Make message limit indicator a component - Rename template
8 lines
283 B
JavaScript
8 lines
283 B
JavaScript
import { __ } from 'i18n';
|
|
import { html } from 'lit';
|
|
|
|
export default (counter) => {
|
|
const i18n_chars_remaining = __('Message characters remaining');
|
|
return html`<span class="message-limit ${counter < 1 ? 'error' : ''}" title="${i18n_chars_remaining}">${counter}</span>`;
|
|
}
|