summaryrefslogtreecommitdiffstats
path: root/roles/reverseproxy/files/conversejs/src/shared/chat/templates/retraction.js
blob: 23b571cdefd98a398f2fa69856084a25e6cb82e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { html } from 'lit';

import '../styles/retraction.scss';

export default (el) => {
    const retraction_text = el.isRetracted() ? el.getRetractionText() : null;
    return html`
        <div class="retraction">${retraction_text}</div>
        ${ el.model.get('moderation_reason') ?
                html`<q class="chat-msg--retracted__reason">${el.model.get('moderation_reason')}</q>` : '' }`;
}