import { Show } from 'solid-js' import MarkdownIt from 'markdown-it' import { clsx } from 'clsx' import styles from './Message.module.scss' import DialogAvatar from './DialogAvatar' import type { Message, ChatMember } from '../../graphql/types.gen' import formattedTime from '../../utils/formatDateTime' import { Icon } from '../_shared/Icon' import { MessageActionsPopup } from './MessageActionsPopup' type Props = { content: Message ownId: number members: ChatMember[] replyClick?: () => void } const md = new MarkdownIt({ linkify: true }) const Message = (props: Props) => { const isOwn = props.ownId === Number(props.content.author) const user = props.members?.find((m) => m.id === Number(props.content.author)) return (