"use client" import { useState } from "react" import { BLOG_POSTS, BLOG_CATEGORIES } from "@/lib/blog-data" import BlogCard from "@/components/BlogCard" export default function PostsGridSection() { const [activeCategory, setActiveCategory] = useState("All") const filtered = activeCategory === "All" ? BLOG_POSTS : BLOG_POSTS.filter((p) => p.category === activeCategory) return (

All articles

{BLOG_CATEGORIES.map((cat) => ( ))}
{filtered.map((post) => ( ))}
) }