import React from 'react'; export type ChatMessageFrom = 'person' | 'assistant'; export interface ChatMessageProps extends Omit, 'children'> { /** * Who wrote it. `person` is set apart — a tinted bubble on the trailing * side — so a long thread reads as turns; `assistant` spans the column, * since its answers carry lists, sources and tables. */ from: ChatMessageFrom; /** The author's name, shown and read: "Ada Reyes", "Ionbase assistant". */ author: React.ReactNode; /** A picture for the author — Avatar, AvatarGradient, LogoMark. Hidden from * assistive tech: the name beside it says who. */ avatar?: React.ReactNode; /** When it was sent. Rendered in a `