import { AKElement } from "@goauthentik/elements/Base"; import { PFSize } from "@goauthentik/elements/Spinner"; import { CSSResult, TemplateResult, html } from "lit"; import { customElement, property } from "lit/decorators.js"; import AKGlobal from "@goauthentik/common/styles/authentik.css"; import PFEmptyState from "@patternfly/patternfly/components/EmptyState/empty-state.css"; import PFTitle from "@patternfly/patternfly/components/Title/title.css"; import PFBase from "@patternfly/patternfly/patternfly-base.css"; @customElement("ak-empty-state") export class EmptyState extends AKElement { @property({ type: String }) icon = ""; @property({ type: Boolean }) loading = false; @property({ type: Boolean }) fullHeight = false; @property() header = ""; static get styles(): CSSResult[] { return [PFBase, PFEmptyState, PFTitle, AKGlobal]; } render(): TemplateResult { return html`
${this.loading ? html`
` : html``}

${this.header}

`; } }