import UserMessage from './UserMessage'; import AssistantMessage from './AssistantMessage'; import type { UIMessage } from 'ai'; interface MessageBubbleProps { message: UIMessage; isLastTurn?: boolean; onUndoTurn?: () => void; onEditAndRegenerate?: (messageId: string, newText: string) => void | Promise; isProcessing?: boolean; isStreaming?: boolean; sessionId?: string | null; approveTools: (approvals: Array<{ tool_call_id: string; approved: boolean; feedback?: string | null }>) => Promise; } export default function MessageBubble({ message, isLastTurn = false, onUndoTurn, onEditAndRegenerate, isProcessing = false, isStreaming = false, sessionId, approveTools, }: MessageBubbleProps) { if (message.role === 'user') { return ( ); } if (message.role === 'assistant') { return ( ); } return null; }