"use client"; import { BadgeCheck, BarChart3, Bell, Briefcase, ChevronDown, ChevronsUpDown, ClipboardList, Clock3, FileText, Folder, Globe2, LayoutDashboard, LogOut, Menu, Search, Sparkles, Star, User, Users, } from "lucide-react"; import type { ComponentType, SVGProps } from "react"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Button } from "@/components/ui/button"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import { Input } from "@/components/ui/input"; import { ScrollArea } from "@/components/ui/scroll-area"; import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger, } from "@/components/ui/sheet"; import { cn } from "@/lib/utils"; type NavItem = { label: string; icon: ComponentType>; href: string; isActive?: boolean; children?: NavItem[]; }; type NavGroup = { title: string; items: NavItem[]; }; const data = { brand: { name: "NovaSales", logo: "/block-media/shadcnblocks/block/logos/NovaSales-logo.svg", }, user: { name: "علی رضایی", email: "ali@example.com", avatar: "/block-media/shadcnblocks/block/avatar-1.webp", }, organization: { name: "شرکت آکمه", logo: "/block-media/shadcnblocks/block/logos/vercel-icon.svg", }, }; const navGroups: NavGroup[] = [ { title: "نمای کلی", items: [ { label: "داشبورد", icon: LayoutDashboard, href: "#", isActive: true, }, { label: "وظایف", icon: ClipboardList, href: "#" }, { label: "نقشه راه", icon: BarChart3, href: "#" }, ], }, { title: "پروژه‌ها", items: [ { label: "پروژه‌های فعال", icon: Briefcase, href: "#", children: [ { label: "پروژه آلفا", icon: FileText, href: "#" }, { label: "پروژه بتا", icon: FileText, href: "#" }, { label: "پروژه گاما", icon: FileText, href: "#" }, ], }, { label: "بایگانی", icon: Folder, href: "#", children: [ { label: "بایگانی ۱۴۰۳", icon: FileText, href: "#" }, { label: "بایگانی ۱۴۲", icon: FileText, href: "#" }, ], }, ], }, { title: "تیم", items: [ { label: "اعضا", icon: Users, href: "#" }, { label: "اسپرینت‌ها", icon: Clock3, href: "#" }, { label: "تأییدها", icon: BadgeCheck, href: "#" }, { label: "بازبینی‌ها", icon: Star, href: "#" }, ], }, { title: "فضای کار", items: [ { label: "یکپارچه‌سازی‌ها", icon: Globe2, href: "#" }, { label: "خودکارسازی‌ها", icon: Sparkles, href: "#" }, ], }, ]; function getInitials(name: string) { return name .split(" ") .map((part) => part[0]) .join("") .slice(0, 2) .toUpperCase(); } function OrganizationSwitcher() { return ( سازمان‌ها
{data.organization.name} {data.organization.name}
ایجاد سازمان
); } const NavDropdown = ({ group }: { group: NavGroup }) => { return ( {group.items.map((item) => { const Icon = item.icon; return (
{item.label} {item.children?.map((child) => { const ChildIcon = child.icon; return ( {child.label} ); })}
); })}
); }; function MobileNav() { return (
شاد‌سی‌ان بلاکس
{data.brand.name}
); } function SearchField({ className }: { className?: string }) { return (
); } function NavUser() { return (

{data.user.name}

{data.user.email}

حساب کاربری خروج
); } interface ApplicationShell13Props { className?: string; } export function ApplicationShell13({ className }: ApplicationShell13Props) { return (
شاد‌سی‌ان بلاکس
{data.brand.name}
{/* Mobile Bottom Navigation */}
); } const bottomNavItems = [ { label: "نمای کلی", icon: LayoutDashboard, href: "#", isActive: true }, { label: "پروژه‌ها", icon: Briefcase, href: "#" }, { label: "تیم", icon: Users, href: "#" }, { label: "فضای کار", icon: Globe2, href: "#" }, ]; function BottomNav() { return ( ); }