/** * Copyright (c) 2023 MERCENARIES.AI PTE. LTD. * All rights reserved. */ import { ChatRenderer } from 'omni-client-services'; // An extension to render markdown in a chat message class OmniBillingTabRenderer extends ChatRenderer { constructor(opts?: NonNullable) { opts ??= {}; super({ id: 'omni-pro-billing/tab' }, opts); } async load(): Promise {} render(content: { type: string; value: any }): string { // TODO: [security] Filter all strings for XSS const comp = `
💰 TOTAL:
`; return comp; } } export default OmniBillingTabRenderer;