import type { ReactNode } from 'react'; export interface MessageProps { author: string; /** `app` marks the agent's own turn and draws the APP badge beside the name. */ kind?: 'person' | 'app'; time?: string; children: ReactNode; className?: string; } export function Message({ author, kind = 'person', time, children, className }: MessageProps) { return (
{author} {kind === 'app' && APP} {time !== undefined && {time}}
{children}
); }