import Link from 'next/link' import { BlogPost } from '@/types/blog' interface PostCardProps { post: BlogPost featured?: boolean } export default function PostCard({ post, featured = false }: PostCardProps) { const formattedDate = new Date(post.date).toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' }) return (
{post.readingTime} min read
{post.featured && ( Featured )}

{post.title}

{post.description}

{post.author?.name?.charAt(0) || 'C'}

{post.author?.name || 'CHORUS Team'}

{post.author?.role && (

{post.author.role}

)}
{post.tags?.slice(0, 3).map((tag) => ( {tag} )) || []} {(post.tags?.length || 0) > 3 && ( +{(post.tags?.length || 0) - 3} more )}
) }