import React, { ForwardedRef } from 'react'; interface ConversationProps { messages: string[]; onResendClick: () => void; onEditClick: () => void; onCopyClick: () => void; } const ConversationFrontend = React.forwardRef( ({ messages, onResendClick, onEditClick, onCopyClick }, ref: ForwardedRef) => { return (
{messages.map((message, index) => { const isUserMessage = message.startsWith('User:'); return (
{message}
); })}
); } ); export default ConversationFrontend;