import React from 'react'; export interface Message { role: 'user' | 'assistant'; content: string; } interface MessageItemProps { message: Message; } export default function MessageItem({ message }: MessageItemProps) { const alignment = message.role === 'user' ? 'items-end' : 'items-start'; return (
{message.content}