"use client"; import * as React from "react"; import { cn } from "./lib/utils"; export interface ChatMessage { id: string; role: "user" | "assistant"; text: string; } export interface ChatThreadProps extends React.HTMLAttributes { messages?: ChatMessage[]; title?: string; } const FALLBACK: ChatMessage[] = [ { id: "1", role: "user", text: "Print two VIP stubs for Saturday." }, { id: "2", role: "assistant", text: "Reserved Row C Seats 12 and 13. Barcode ink is drying." }, { id: "3", role: "user", text: "Add a backstage pass." }, ]; /** Vertical chat thread with dashed stem and role stamps. */ export function ChatThread({ messages = FALLBACK, title = "Box office thread", className, ...props }: ChatThreadProps) { return (

{title}

    {messages.map((m) => (
  1. {m.role}

    {m.text}

  2. ))}
); }