import { gettext } from "django"; import { css, CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element"; import { Event } from "../../api/Events"; import { COMMON_STYLES } from "../../common/styles"; import "./EventInfo"; @customElement("ak-event-info-page") export class EventInfoPage extends LitElement { @property() set args(value: { [key: string]: string }) { this.eventID = value.id; } @property() set eventID(value: string) { Event.get(value).then((e) => (this.event = e)); } @property({ attribute: false }) event?: Event; static get styles(): CSSResult[] { return COMMON_STYLES.concat(css` .pf-c-card { color: var(--ak-dark-foreground); } `); } render(): TemplateResult { return html`

${gettext(`Event ${this.event?.pk || ""}`)}

`; } }