import { _converse } from '@converse/headless/core'; import { html } from "lit"; import { until } from 'lit/directives/until.js'; export default (o) => { const tpl_standalone_btns = (o) => o.standalone_btns.reverse().map(b => until(b, '')); return html`
${ (!_converse.api.settings.get("singleton")) ? html`` : '' }
${ o.display_name }
${ o.dropdown_btns.length ? html`` : '' } ${ o.standalone_btns.length ? tpl_standalone_btns(o) : '' }
${ o.status ? html`

${ o.status }

` : '' } `; }