import Link from "next/link"; import { NavbarBrand } from "./components/NavbarBrand"; import { navbarStyles } from "./styles/navbarStyles"; import type { CategoryNode, MenuItem } from "./utils/serverNavbarData"; import { ChevronDownIcon } from "@/app/utils/svgs/chevronDownIcon"; interface NavBarProps { categories: CategoryNode[]; menuItems: MenuItem[]; } const DEFAULT_BRAND = "Saleor Storefront"; const DEFAULT_LOGO = "https://webshopmanager.com/files/images/logo.png"; function getBrandConfig() { const brandName = process.env.NEXT_PUBLIC_BRAND_NAME || process.env.NEXT_PUBLIC_TENANT_NAME || DEFAULT_BRAND; const logo = process.env.NEXT_PUBLIC_LOGO_URL || DEFAULT_LOGO; return { brandName, logo }; } function getTargetFromMetadata( metadata?: Array<{ key: string; value: string }> ) { const target = metadata?.find((m) => m.key === "target")?.value; return target === "_blank" ? "_blank" : "_self"; } function ProductsDropdown({ categories }: { categories: CategoryNode[] }) { return (
No Categories Found
Categories will appear here when available.