"use client"; import Link from "next/link"; import { Placeholder } from "@/components/Placeholder"; import type { NavCategory } from "@/lib/categories"; export function MegaMenu({ open, categories }: { open: boolean; categories: NavCategory[] }) { if (!open) return null; return (
{categories.length === 0 ? (

دسته‌بندی‌ها به‌زودی اضافه می‌شوند.

) : (
{categories.map((category) => (
{category.title} {category.children.length ? (
    {category.children.map((child) => (
  • {child.title}
  • ))}
) : null}
))}
)}
); }