import React from 'react'; import Link from 'next/link'; import Image from 'next/image'; import { format } from 'date-fns'; import { PostMetadata } from '@/types'; interface PostCardProps { post: PostMetadata; } const PostCard: React.FC = ({ post }) => { return (
{post.coverImage && (
{post.title}
)}

{post.title}

{post.author}

{post.excerpt}

{post.tags.map(tag => ( {tag} ))}
Read more
); }; export default PostCard;