import * as React from "react"; import { cn } from "@/lib/utils"; type ChatRole = "user" | "assistant"; interface ChatMessageProps extends React.HTMLAttributes { role: ChatRole; avatar?: React.ReactNode; } export const ChatMessage = React.forwardRef( ({ className, role, avatar, children, ...props }, ref) => (
{avatar ? (
{avatar}
) : null}
{children}
), ); ChatMessage.displayName = "ChatMessage"; interface ChatBubbleProps extends React.HTMLAttributes { role: ChatRole; } export const ChatBubble = React.forwardRef( ({ className, role, ...props }, ref) => (
), ); ChatBubble.displayName = "ChatBubble";