"use client"; import {BlogPost} from "contentlayer/generated"; import {Card, CardFooter, CardBody, CardHeader, Link, Avatar, Image} from "@nextui-org/react"; import Balancer from "react-wrap-balancer"; import {format, parseISO} from "date-fns"; import NextLink from "next/link"; import {AnimatePresence, motion} from "framer-motion"; import {useIsMounted} from "@/hooks/use-is-mounted"; import {trackEvent} from "@/utils/va"; const BlogPostCard = (post: BlogPost) => { const isMounted = useIsMounted(); const handlePress = () => { trackEvent("BlogPostCard - Selection", { name: post.title, action: "click", category: "blog", data: post.url ?? "", }); }; return ( {isMounted && ( {post.title}

{post.description}

)}
); }; export const BlogPostList = ({posts}: {posts: BlogPost[]}) => { return (
{posts.map((post, idx) => ( ))}
); };