import { memo } from 'react' import type { UIAttachment } from '../../types/chat' import { AttachmentGallery } from './AttachmentGallery' import { MessageActionBar, type MessageBranchAction } from './MessageActionBar' type Props = { content: string attachments?: UIAttachment[] branchAction?: MessageBranchAction } export const UserMessage = memo(function UserMessage({ content, attachments, branchAction }: Props) { const hasText = content.trim().length > 0 return (