import { useRef, useState } from 'react'; import { useUserAvatar } from '../hooks/useUserAvatar'; import type { Message } from '../types'; import { getDisplayText, getFileAttachments, getImageUrls, getRenderableImageUrls, getThinking, shouldShowChatMessage } from '../utils/message'; import { resolveMessageRecallKey } from '../utils/memoryFeedback'; import { getMessageSaveActions } from '../utils/messageSave'; import { renderMarkdown } from '../utils/markdown'; import { filterText } from '../utils/wordFilter'; import { formatChatTime, shouldShowTimestamp } from '../utils/time'; import { TKMindAvatar } from './TKMindAvatar'; import { UserAvatar } from './UserAvatar'; import { ChatWelcomePanel } from './ChatWelcomePanel'; function CopyIcon() { return ( ); } function CheckIcon() { return ( ); } function PageIcon() { return ( ); } function ImageIcon() { return ( ); } function DocumentIcon() { return ( ); } function PlazaIcon() { return ( ); } function LinkIcon() { return ( ); } function ToolActivityIcon({ spinning }: { spinning: boolean }) { return (