import { Separator } from '@/components/ui/separator' import { UIState } from '@/lib/chat/actions' export interface ChatList { messages: UIState } export function ChatList({ messages }: ChatList) { if (!messages.length) { return null } return (
{messages.map((message, index) => (
{message.display} {index < messages.length - 1 && }
))}
) }