import type { Message } from 'ai'; import { classNames } from '~/utils/classNames'; import { AssistantMessage } from './AssistantMessage'; import { UserMessage } from './UserMessage'; interface MessagesProps { id?: string; className?: string; isStreaming?: boolean; messages?: Message[]; } export function Messages(props: MessagesProps) { const { id, isStreaming = false, messages = [] } = props; return (