"use client"; import Link from "next/link"; import { useRelated } from "@/hooks/useRelated"; import { getSectionMeta } from "@mcpedia/config/sections"; import { Sparkles } from "lucide-react"; export default function RelatedGrid({ slug }: { slug: string }) { const { related, isLoading, error } = useRelated(slug, 4); if (isLoading) { return (
{Array.from({ length: 4 }).map((_, i) => (
))}
); } if (error || related.length === 0) return null; return ( ); }