import {AccountShare} from "../types.js" import {MetalshopComponent, html} from "../framework/metalshop-component.js" import * as loading from "../toolbox/loading.js" import {styles} from "./styles/metal-account-styles.js" import {mixinStyles} from "../framework/mixin-styles.js" @mixinStyles(styles) export class MetalAccount extends MetalshopComponent { render() { const {authLoad} = this.share const loggedIn = !!loading.payload(authLoad)?.getAuthContext return html` ${loggedIn ? this.renderLoggedIn() : this.renderLoggedOut()} ` } private renderLoggedIn() { return html`
` } private renderLoggedOut() { return html`
` } }