import Link from 'next/link'; import type { PlazaPost } from '@/types/plaza'; import { plazaPath } from '@/lib/site'; export function FeaturedBanner({ posts }: { posts: PlazaPost[] }) { if (posts.length === 0) return null; return (

精选推荐

{posts.slice(0, 5).map((post) => (

{post.category.icon} {post.category.name}

{post.title}

{post.author.display_name}

))}
); }