{ "name": "tweet-card", "type": "registry:component", "dependencies": [ "lucide-react" ], "files": [ { "type": "registry:component", "content": "import { VerifiedIcon } from \"lucide-react\";\nimport Link from \"next/link\";\nimport { cn } from \"@/lib/utils\";\n\n/**\n * @author: @dorianbaffier\n * @description: Tweet Card\n * @version: 1.0.0\n * @date: 2025-10-01\n * @license: MIT\n * @website: https://kokonutui.com\n * @github: https://github.com/kokonut-labs/kokonutui\n */\n\ntype ReplyProps = {\n authorName: string;\n authorHandle: string;\n authorImage: string;\n content: string;\n isVerified?: boolean;\n timestamp: string;\n};\n\ntype TweetCardProps = {\n authorName?: string;\n authorHandle?: string;\n authorImage?: string;\n content?: string[];\n isVerified?: boolean;\n timestamp?: string;\n href?: string;\n reply?: ReplyProps;\n className?: string;\n};\n\nexport default function TweetCard({\n authorName = \"Dorian\",\n authorHandle = \"dorianbaffier\",\n authorImage = \"https://pbs.twimg.com/profile_images/1992215290936205312/N_EuwLUO_400x400.jpg\",\n content = [\n \"All components from KokonutUI can now be open in @v0 ๐ŸŽ‰\",\n \"1. Click on 'Open in V0'\",\n \"2. Customize with prompts\",\n \"3. Deploy to your app\",\n ],\n isVerified = true,\n timestamp = \"Jan 18, 2025\",\n href = \"#\",\n reply = {\n authorName: \"shadcn\",\n authorHandle: \"shadcn\",\n authorImage:\n \"https://pbs.twimg.com/profile_images/1593304942210478080/TUYae5z7_400x400.jpg\",\n content: \"Awesome.\",\n isVerified: true,\n timestamp: \"Jan 18\",\n },\n className,\n}: TweetCardProps) {\n return (\n \n \n \n
\n
\n
\n \n
\n
\n\n
\n
\n
\n
\n \n {authorName}\n \n {isVerified && (\n \n )}\n
\n \n @{authorHandle}\n \n
\n \n \n X\n \n \n \n
\n
\n
\n\n
\n {content.map((item, index) => (\n \n {item}\n

\n ))}\n \n {timestamp}\n \n
\n\n {reply && (\n
\n
\n
\n
\n \n
\n
\n
\n
\n \n {reply.authorName}\n \n {reply.isVerified && (\n \n )}\n \n @{reply.authorHandle}\n \n \n ยท\n \n \n {reply.timestamp}\n \n
\n

\n {reply.content}\n

\n
\n
\n
\n )}\n \n \n \n );\n}\n", "path": "/components/kokonutui/tweet-card.tsx", "target": "components/kokonutui/tweet-card.tsx" } ] }