import {OOElement} from '../../oo-element' import {html} from '../../../lib/html' import summary from '../../oo-project-summary' import define from '../../../lib/define' define('oo-project-summary', summary) const ATTR = { DATA_UID: 'data-uid' } const projectUid: WeakMap = new WeakMap() export default class extends OOElement { static get observedAttributes() { return [ATTR.DATA_UID] } attributeChangedCallback(attr, prev, next) { if (prev === next || !next) { return } projectUid.set(this, next) this.update() } connectedCallback() { super.connectedCallback(false) } render() { const uid = projectUid.get(this) const projectUrl = `https://ooapp.co/project/${uid}` return html`
Sharing URL ${projectUrl} Edit profile Change your profile
` } }