import Row from "@moduletrace/twui/layout/Row"; import type { BotMessageAttachment } from "@/src/types"; import MessageAttachment from "./message-attachment"; type Props = { attachments?: BotMessageAttachment[]; }; /** * A message's files, right-aligned above its bubble. */ export default function MessageAttachments({ attachments }: Props) { if (!attachments?.length) return null; return ( {attachments.map((attachment) => ( ))} ); }