import Link from "next/link"; import Image from "next/image"; import { PostMeta } from "./PostMeta"; import type { Post } from "@/types/api"; interface PostCardProps { post: Post; } export function PostCard({ post }: PostCardProps) { return (
{post.cover_image && (
{post.title}
)}

{post.title}

{post.content.slice(0, 200).replace(/[#*`]/g, "")} {post.content.length > 200 ? "..." : ""}

Read More
); }