'use client'; import Link from 'next/link'; import { m } from 'motion/react'; import type { PostMeta } from '@/lib/posts'; export function PostCard({ slug, title, date, excerpt, tags = [], author, readingTime, index = 0 }: PostMeta & { index?: number }) { return (
{author && ·} {author && {author}} {readingTime && ·} {readingTime && {readingTime} min read}

{title}

{tags && tags.length > 0 && (
{tags.slice(0, 3).map((tag) => ( {tag} ))}
)} {excerpt && (

{excerpt}

)}
); }