'use client'; import { type ReactNode } from 'react'; import { ArrowUpRight } from 'lucide-react'; interface InsightCardProps { /** Category tag (e.g. "白皮书", "观点") */ tag: string; /** Title */ title: string; /** Description */ desc: string; /** Optional date string */ date?: string; /** Whether this is a featured (large) card with image */ featured?: boolean; /** Image URL for featured card */ image?: string; /** Optional link element (avoid nesting in ) */ link?: ReactNode; className?: string; } export function InsightCard({ tag, title, desc, date, featured = false, image, link, className = '', }: InsightCardProps) { if (featured) { return ( {/* Background image */} {image && ( )} {tag} {title} {desc} 阅读全文 ); } return ( {tag} {title} {desc} {date && ( {date} )} {link && {link}} ); }
{desc}