peertube-plugin-livechat/client/common/lib/elements/spinner.ts
John Livingston 597afc8ba6
New page loading and error cases:
* adding new custom elements: spinner and error
* using them on async tasks
2024-06-12 17:14:37 +02:00

15 lines
468 B
TypeScript

// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
//
// SPDX-License-Identifier: AGPL-3.0-only
import { html, TemplateResult } from 'lit'
import { customElement } from 'lit/decorators.js'
import { LivechatElement } from './livechat'
@customElement('livechat-spinner')
export class SpinnerElement extends LivechatElement {
protected override render = (): TemplateResult => {
return html`<div></div>` // CSS does the trick.
}
}