import { Button } from "@/components/ui/button"; import { useBlogs } from "@/hooks/queires/useBlogs"; import { motion } from "framer-motion"; import { ArrowRight, Calendar, Clock, User } from "lucide-react"; import { Link } from "react-router-dom"; import PremiumBadge from "../shared/PremiumBadge"; const containerVariants = { hidden: { opacity: 0 }, visible: { opacity: 1, transition: { staggerChildren: 0.2, }, }, }; const itemVariants = { hidden: { opacity: 0, y: 30 }, visible: { opacity: 1, y: 0, transition: { duration: 0.6, ease: "easeOut" as const }, }, }; export default function BlogSection() { const { data } = useBlogs(); const blogPosts = data?.data.result; return (
{/* Background elements */}

News &{" "} Blog

Stay updated with the latest trends, insights, and thought leadership from our team of experts.

{/* Blog Grid */} {blogPosts?.map((post) => ( {/* Image */}
{post.title}
{post.category}
{/* Content */}

{post.title}

{post.excerpt}

{/* Meta */}
{post.author.name} {new Date(post.date).toLocaleDateString("en-US", { month: "short", day: "numeric", })} {post.readTime}
{/* Read More */} Read Article
))} {/* View All Button */}
); }