import ModCard from "./ModCard"; import { Skeleton } from "@/components/ui/skeleton"; interface Mod { id: string; slug: string; title: string; description: string; icon_url?: string; downloads: number; followers: number; categories: string[]; project_type: string; } interface ModGridProps { mods: Mod[]; isLoading?: boolean; title?: string; } const ModGrid = ({ mods, isLoading, title }: ModGridProps) => { return (
{title && (

{title}

)} {isLoading ? (
{Array.from({ length: 6 }).map((_, i) => (
))}
) : mods.length === 0 ? (
لا توجد إضافات حالياً
) : (
{mods.map((mod) => ( ))}
)}
); }; export default ModGrid;