"use client"; import { Award, BarChart3, Bell, Book, BookOpen, Brain, ChevronRight, FileCode, FileText, GraduationCap, MessageSquare, Users, Video, } from "lucide-react"; import { type LucideIcon } from "lucide-react"; import { useState } from "react"; import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "@/components/ui/accordion"; import { Button } from "@/components/ui/button"; import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerStyle, } from "@/components/ui/navigation-menu"; import { Separator } from "@/components/ui/separator"; import { cn } from "@/lib/utils"; interface MenuItem { title: string; href: string; description?: string; icon: LucideIcon; } interface FeaturedContent { title: string; description: string; href: string; image: { src: string; alt: string; }; } interface MenuSection { label: string; items: MenuItem[]; } interface MegaMenu { label: string; sections: MenuSection[]; featured?: FeaturedContent; } interface Navbar14Props { logo?: { src: string; alt: string; href?: string; title?: string; }; menus?: MegaMenu[]; links?: { label: string; href: string }[]; auth?: { login: { label: string; href: string }; signup: { label: string; href: string }; }; className?: string; } const Navbar14 = ({ logo = { src: "/block-media/shadcnblocks/block/logos/ShadcnBlocks-logo.svg", alt: "لوگو", href: "#", title: "آکادمی سیگنا", }, menus = [ { label: "محصولات", sections: [ { label: "ابزارها", items: [ { title: "مدیریت مسیر یادگیری فروش", description: "ساخت، سازماندهی و ارائه دوره‌های فروش", icon: GraduationCap, href: "#", }, { title: "تحلیل پیشرفت نمایندگان", description: "پیگیری پیشرفت و عملکرد تیم فروش", icon: BarChart3, href: "#", }, { title: "تمرین تعاملی", description: "تمرین مکالمه با سناریوهای واقعی", icon: Video, href: "#", }, { title: "کوچینگ هوشمند", description: "مسیر یادگیری شخصی بر اساس نقش فروش", icon: Brain, href: "#", }, { title: "همکاری و بازخورد", description: "ارتباط نماینده و مربی بدون اصطکاک", icon: MessageSquare, href: "#", }, { title: "ارزیابی و گواهی", description: "سنجش آمادگی با آزمون نقش و مهارت", icon: Award, href: "#", }, ], }, { label: "شروع سریع", items: [ { title: "آنبوردینگ نماینده", icon: BookOpen, href: "#", }, { title: "یافتن مربی", icon: Users, href: "#", }, ], }, ], featured: { title: "یک پلتفرم. هر نماینده.", description: "مسیر یادگیری شخصی برای هر نقش فروش.", href: "#", image: { src: "/block-media/shadcnblocks/block/placeholder-1.svg", alt: "محتوای ویژه", }, }, }, { label: "پشتیبانی", sections: [ { label: "راهنماها", items: [ { title: "مرکز یادگیری", description: "نحوه استفاده مؤثر از آکادمی سیگنا", icon: Book, href: "#", }, { title: "فهرست دوره‌ها", description: "مرور کتابخانه دوره‌های فروش", icon: BookOpen, href: "#", }, { title: "مستندات API", description: "یکپارچه‌سازی با سامانه مدیریت ارتباط با مشتری شما", icon: FileCode, href: "#", }, ], }, { label: "درباره ما", items: [ { title: "به‌روزرسانی پلتفرم", icon: FileText, href: "#" }, { title: "اخبار و رویدادها", icon: Bell, href: "#" }, { title: "وبلاگ توانمندسازی فروش", icon: Book, href: "#" }, { title: "همکاری با ما", icon: Users, href: "#" }, ], }, ], }, ], links = [{ label: "درباره ما", href: "#" }], auth = { login: { label: "ورود", href: "#" }, signup: { label: "درخواست دمو", href: "#" }, }, className, }: Navbar14Props) => { const [isOpen, setIsOpen] = useState(false); const hasDescription = (items: MenuItem[]) => items.some((item) => item.description); return (
{isOpen && (
{menus.map((menu) => ( {menu.label}
{menu.sections.map((section, i) => ( ))} {menu.featured && ( <>

آخرین به‌روزرسانی‌ها

setIsOpen(false)} >
{menu.featured.image.alt}
{menu.featured.title} {menu.featured.description}
)}
))}
{links.map((link) => ( {link.label} ))}
)}
); }; export { Navbar14 };