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

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

) : (
{sections.map((category) => (
{category.title}
))}
)}
); }