"use client"; import Link from "next/link"; import { useState } from "react"; import { SearchBox } from "@/components/SearchBox"; import { navLinks } from "@/data/content"; import type { MegaColumn } from "@/lib/catalog"; import { CUSTOMER_URL } from "@/lib/site"; import { IconBag, IconChevronDown, IconClose, IconHeart, IconMenu, IconUser } from "./Icons"; type Props = { categories?: MegaColumn[]; }; export function Header({ categories = [] }: Props) { const [open, setOpen] = useState(false); const [mega, setMega] = useState(false); const [mobileCats, setMobileCats] = useState(false); const closeAll = () => { setOpen(false); setMega(false); setMobileCats(false); }; return (
NN Nini Naderi نینی نادری
ورود
{open ? (
) : null}
); } function MegaMenu({ categories, onPick }: { categories: MegaColumn[]; onPick: () => void }) { return (

Categories

خرید بر اساس دسته

مشاهده همه
{categories.length ? (
{categories.map((column) => (
{column.name} {column.children.length ? (
    {column.children.map((child) => (
  • {child.name}
  • ))}
) : null}
))}
) : (

دسته‌بندی‌ها به‌زودی اینجا می‌آیند.

)}
); }