'use client' import type { TrumpPost } from '@/types' import Badge from '@/components/ui/Badge' import { formatPct } from '@/lib/utils' interface ExpandDetailProps { post: TrumpPost | null } export default function ExpandDetail({ post }: ExpandDetailProps) { return (
{post && (
{/* Post content */}
{new Date(post.published_at).toLocaleString()}

{post.text}

{/* Stats */}
{/* AI Confidence */}
AI Confidence {post.ai_confidence}%
{/* Price impact */} {post.price_impact ? (

Price Impact ({post.price_impact.asset})

{[ { label: '5m', value: post.price_impact.m5 }, { label: '15m', value: post.price_impact.m15 }, { label: '1h', value: post.price_impact.m1h }, ].map((item) => (

{item.label}

= 0 ? 'text-[#4ade80]' : 'text-[#ef4444]' }`} > {formatPct(item.value)}

))}
) : (

No significant price impact detected.

)}
)}
) }