{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "chat-demo",
  "type": "registry:block",
  "description": "Chat thread with sources",
  "files": [
    {
      "path": "registry/predict/app/chat/chat-demo.tsx",
      "content": "\"use client\"\n\nimport { WatchIcon } from \"lucide-react\"\n\nimport {\n  ChatAiMessage,\n  ChatLink,\n  ChatSourceRow,\n  ChatSources,\n  ChatSourcesPanel,\n  ChatSourcesTrigger,\n  ChatText,\n  ChatThreadHeader,\n  ChatUserMessage,\n} from \"@workspace/ui/predict/app/chat\"\n\nexport function ChatDemo() {\n  return (\n    <div className=\"flex w-[370px] max-w-full flex-col gap-5 rounded-[32px] bg-tint p-3 text-foreground\">\n      <ChatThreadHeader title=\"Sleep last night\" />\n      <ChatUserMessage time=\"7:42 am\">Why did I sleep so badly?</ChatUserMessage>\n      <ChatAiMessage>\n        <ChatText>\n          You fell asleep 50 minutes later than usual, and you woke twice after 3 am. Late screens and a late\n          meal are the likely reasons.\n        </ChatText>\n        <ChatSources className=\"flex w-full flex-col items-start gap-2\">\n          <ChatSourcesTrigger>Apple Watch, last night</ChatSourcesTrigger>\n          <ChatSourcesPanel>\n            <ChatSourceRow icon={<WatchIcon size={20} strokeWidth={1.5} />} title=\"Time asleep\" source=\"Apple Watch\" />\n            <ChatSourceRow icon={<WatchIcon size={20} strokeWidth={1.5} />} title=\"Heart rate\" source=\"Apple Watch\" />\n            <ChatText tone=\"muted\" className=\"px-2 py-1\">\n              Fairly sure. Two nights of data.\n            </ChatText>\n          </ChatSourcesPanel>\n        </ChatSources>\n        <ChatLink>Keep this question open</ChatLink>\n      </ChatAiMessage>\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ]
}