import { gettext } from "django";
import { customElement, html, LitElement, property, TemplateResult } from "lit-element";
import { Application } from "../../api/Applications";
import { Provider } from "../../api/Providers";
import "../../elements/buttons/ModalButton";
import "../../elements/Spinner";
@customElement("ak-provider-related-application")
export class RelatedApplicationButton extends LitElement {
@property({attribute: false})
provider?: Provider;
render(): TemplateResult {
if (this.provider?.assigned_application_slug) {
return html`
${this.provider.assigned_application_name}
`;
}
return html`
${gettext("Create")}
`;
}
}