// SPDX-FileCopyrightText: 2024 John Livingston // // SPDX-License-Identifier: AGPL-3.0-only import { html } from 'lit' import { __ } from 'i18n' export function tplMucNote (el, note) { // eslint-disable-next-line no-undef const i18nDelete = __(LOC_moderator_note_delete) return !el.edit ? html`
${note.get('description') ?? ''}
` : html`
${_tplNoteForm(note)}
` } function _tplNoteForm (note) { // eslint-disable-next-line no-undef const i18nNoteDesc = __(LOC_moderator_note_description) return html`
` } export function tplMucCreateNoteForm (notesEl) { const i18nOk = __('Ok') const i18nCancel = __('Cancel') return html`
${_tplNoteForm(undefined)}
${!notesEl.create_note_error_message ? '' : html`
${notesEl.create_note_error_message}
` }
` }