import Link from 'next/link' import { formatDate, getExcerpt, getReadingTime, type Post } from '@/app/blog/utils' import { cn } from '@/lib/utils' import { Card } from '@/components/ui/card' type PostCardProps = { post: Post className?: string } export default function PostCard({ post, className }: PostCardProps) { const { metadata, slug, content } = post const excerpt = getExcerpt(metadata.summary, content, 200) const reading = getReadingTime(content) return (

{metadata.title}

{excerpt && (

{excerpt}

)}
) }