import { DeesElement, property, html, customElement, type TemplateResult } from '@design.estate/dees-element'; import * as domtools from '@design.estate/dees-domtools'; import * as sioInterfaces from '@social.io/interfaces'; @customElement('sio-subwidget-conversations') export class SioSubwidgetConversations extends DeesElement { // STATIC // INSTANCE public conversations: sioInterfaces.ISioConversation[] = [ { subject: 'Pricing page', parties: [ { id: '1', description: 'Lossless Support', name: 'Lossless Support', }, { id: '2', description: 'you', name: 'you', }, ], conversationBlocks: [ { partyId: '1', text: 'Hello there :) How can we help you?', }, { partyId: '2', text: 'Hi! Where is your pricing page?', }, ], },{ subject: 'Pricing page', parties: [ { id: '1', description: 'Lossless Support', name: 'Lossless Support', }, { id: '2', description: 'you', name: 'you', }, ], conversationBlocks: [ { partyId: '1', text: 'Hello there :) How can we help you?', }, { partyId: '2', text: 'Hi! Where is your pricing page?', }, ], }, ]; public static demo = () => html``; public render(): TemplateResult { return html` ${domtools.elementBasic.styles}
Your conversations:
${this.conversations.map((conversationArg) => { return html`
Today at 8:01
${conversationArg.subject}
`; })} View more
`; } }