import { customElement, property } from "lit/decorators"; import { css, html, LitElement, nothing } from "lit"; import "../../../../../../components/ha-fade-in"; import "../../../../../../components/ha-spinner"; @customElement("zwave-js-add-node-loading") export class ZWaveJsAddNodeLoading extends LitElement { @property() public description?: string; @property({ type: Number }) public delay = 0; render() { return html`
${this.description ? html`

${this.description}

` : nothing}
`; } static styles = css` ha-fade-in { display: block; } .loading { display: flex; align-items: center; justify-content: center; min-height: 200px; } p { margin-top: 16px; color: var(--secondary-text-color); text-align: center; } `; } declare global { interface HTMLElementTagNameMap { "zwave-js-add-node-loading": ZWaveJsAddNodeLoading; } }