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