import { BadgeIcon, CheckCheckIcon, CheckIcon, HeartIcon, MessageCircleIcon, RefreshCwIcon, } from 'lucide-react'; import Image from 'next/image'; interface TwitterCardProps { avatarUrl?: string; name: string; handle: string; content: React.ReactNode; replies?: number; retweets?: number; likes?: number; verified?: boolean; } export function TwitterCard({ avatarUrl, name, handle, content, replies = 0, retweets = 0, likes = 0, verified = false, }: TwitterCardProps) { const renderContent = () => { if (typeof content === 'string') { return
{content}
; } if (Array.isArray(content) && typeof content[0] === 'string') { return content.map((line) =>{line}
); } return content; }; return (