import { h, Component } from "preact"; import MessageType from "./messagetype"; import { IMessageTypeProps } from "../../typings"; export default class TextType extends MessageType { render(props: IMessageTypeProps) { const message = props.message; const attachment = message.attachment; const textObject = { __html: message.text }; return (

{attachment && attachment.type === "image" ? ( ) : ( "" )} {attachment && attachment.type === "audio" ? ( ) : ( "" )} {attachment && attachment.type === "video" ? ( ) : ( "" )}

); } }