import { cn } from '../../lib/utils'; import type { HTMLAttributes } from 'react'; export type MessageProps = HTMLAttributes & { from: 'user' | 'assistant' | 'system' | 'tool'; }; // Public CSS hooks for user customization (Settings → Appearance → Custom CSS): // .ai-chat-message[data-role="user"] — outer row, user-authored // .ai-chat-message[data-role="assistant"] — outer row, assistant reply // .ai-chat-message-content[data-role=...] — inner bubble / content area // These attributes are part of the UI's stable contract; do not rename // without updating Custom CSS docs. export const Message = ({ className, from, ...props }: MessageProps) => (
); export type MessageContentProps = HTMLAttributes & { from?: 'user' | 'assistant' | 'system' | 'tool'; }; export const MessageContent = ({ children, className, from, ...props }: MessageContentProps) => (
{children}
);