import "@goauthentik/admin/applications/ApplicationForm";
import { AKElement } from "@goauthentik/elements/Base";
import "@goauthentik/elements/Spinner";
import "@goauthentik/elements/forms/ModalForm";
import { msg } from "@lit/localize";
import { CSSResult, TemplateResult, html } from "lit";
import { customElement, property } from "lit/decorators.js";
import PFButton from "@patternfly/patternfly/components/Button/button.css";
import PFBase from "@patternfly/patternfly/patternfly-base.css";
import { Provider } from "@goauthentik/api";
@customElement("ak-provider-related-application")
export class RelatedApplicationButton extends AKElement {
    static get styles(): CSSResult[] {
        return [PFBase, PFButton];
    }
    @property({ attribute: false })
    provider?: Provider;
    render(): TemplateResult {
        if (this.provider?.assignedApplicationSlug) {
            return html`
                ${this.provider.assignedApplicationName}
            `;
        }
        return html`
             ${msg("Create")} 
             ${msg("Create Application")} 
             
            
        `;
    }
}