import '../components/adhoc-commands.js'; import xss from "xss/dist/xss"; import { __ } from '@converse/headless/i18n'; import { api } from "@converse/headless/converse-core"; import { html } from "lit-html"; import { modal_header_close_button } from "./buttons" import { unsafeHTML } from 'lit-html/directives/unsafe-html.js'; const i18n_modal_title = __('Settings'); const i18n_about = __('About'); const i18n_commands = __('Commands'); const first_subtitle = __( '%1$s Open Source %2$s XMPP chat client brought to you by %3$s Opkode %2$s', '', '', '' ); const second_subtitle = __( '%1$s Translate %2$s it into your own language', '', '' ); const tpl_navigation = (o) => html` `; export default (o) => { const show_client_info = api.settings.get('show_client_info'); const allow_adhoc_commands = api.settings.get('allow_adhoc_commands'); const show_both_tabs = show_client_info && allow_adhoc_commands; return html` `};