import { html, LitElement, nothing } from "lit"; import { customElement, property } from "lit/decorators.js"; import { tailwind } from "../tailwind"; import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber"; @customElement("docs-user") export class user extends Subscriber(LitElement) { // add tailwind static styles = [tailwind]; @property({ type: String }) id = ""; @property({ type: String }) avatar = ""; @property({ type: String }) first_name = ""; @property({ type: String }) email = ""; @property({ type: String }) last_name = ""; render() { return html`
${this.first_name} ${this.last_name}
${this.email}
${this.id == "2" || this.id == "5" ? html` ${this.id} ` : nothing}
`; } }