// @ts-nocheck import { Card, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card" import { Button } from "@/components/ui/button" import { Link } from "react-router" import { convertDate } from "@/utils/convertDate" const PostListing = ({ posts, title, showAllButton }) => { return ( <>

{title}

{posts.map((post) => ( {post.title}
{convertDate(post.date)}
))}
{showAllButton && ( )} ) } export default PostListing