import { LitElement, property, html, customElement, TemplateResult } from 'lit-element'; export type TEnvironment = 'native' | 'desktop' | 'tablet' | 'phablet' | 'phone'; let environment: TEnvironment = 'native'; export const setEnvironment = envArg => { environment = envArg; }; @customElement('wcc-properties') export class WccProperties extends LitElement { @property() public selectedItem: TemplateResult | LitElement; @property() public selectedInstance; @property() public selectedViewport = 'native'; @property() public warning: string = null; public render(): TemplateResult { return html`
${(() => { const result = this.selectedInstance ? JSON.stringify(this.selectedInstance[key], null, 2) : null; return result; })()}