"use client"; import { ArrowDownRight, ArrowLeftRight, ArrowUpRight, BarChart3, Bell, ChevronDown, Copy, Gift, HelpCircle, LayoutGrid, LogOut, type LucideIcon, Menu, Moon, Search, Settings, Star, TrendingUp, Wallet, } from "lucide-react"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Button } from "@/components/ui/button"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, 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 NavLink = { label: string; href: string; isActive?: boolean; icon: LucideIcon; }; type TokenItem = { name: string; symbol: string; color: string; }; type NotificationItem = { title: string; detail: string; time: string; tone: string; }; const data = { brand: { name: "NexoChain", }, user: { name: "علی رضایی", email: "ali@example.com", avatar: "/block-media/shadcnblocks/block/avatar-2.webp", }, wallet: { address: "0x1cf2...9a56", balance: "$460,890.02", status: "متصل", }, }; const navLinks: NavLink[] = [ { label: "نمای کلی", href: "#", isActive: true, icon: LayoutGrid }, { label: "بازارها", href: "#", icon: BarChart3 }, { label: "معامله", href: "#", icon: ArrowLeftRight }, { label: "پاداشها", href: "#", icon: TrendingUp }, ]; const favorites: TokenItem[] = [ { name: "Bitcoin", symbol: "BTC", color: "bg-orange-500" }, { name: "Ethereum", symbol: "ETH", color: "bg-indigo-500" }, { name: "XRP", symbol: "XRP", color: "bg-neutral-900" }, { name: "TetherUS", symbol: "IRRT", color: "bg-emerald-500" }, { name: "Tron", symbol: "TRX", color: "bg-red-500" }, { name: "Solana", symbol: "SOL", color: "bg-violet-500" }, { name: "IRRC", symbol: "IRRC", color: "bg-blue-500" }, { name: "BNB", symbol: "BNB", color: "bg-yellow-500" }, { name: "Avalanche", symbol: "AVAX", color: "bg-rose-500" }, { name: "Cardano", symbol: "ADA", color: "bg-sky-500" }, ]; const walletAssets: TokenItem[] = [ { name: "Bitcoin", symbol: "BTC", color: "bg-orange-500" }, { name: "Ethereum", symbol: "ETH", color: "bg-indigo-500" }, { name: "XRP", symbol: "XRP", color: "bg-neutral-900" }, { name: "TetherUS", symbol: "IRRT", color: "bg-emerald-500" }, ]; const notifications: NotificationItem[] = [ { title: "برای امنیت حساب، احراز دو مرحلهای را فعال کنید", detail: "کروم روی macOS، استانبول", time: "۵ دقیقه", tone: "text-rose-500", }, { title: "مبادله انجام شد", detail: "۰٫۵ BTC - ۱۲٬۳۵۰ IRRC", time: "اکنون", tone: "text-emerald-500", }, { title: "۱۵ IRRC پاداش معاملاتی دریافت کردید", detail: "در انتظار تأیید بلاک", time: "۱ ساعت", tone: "text-emerald-500", }, { title: "ورود جدید", detail: "کروم روی macOS، استانبول", time: "۱۰ دقیقه", tone: "text-orange-500", }, { title: "تعمیرات برنامهریزیشده", detail: "فردا ساعت ۰۳:۰۰ UTC", time: "دیروز", tone: "text-muted-foreground", }, ]; function TokenBadge({ item }: { item: TokenItem }) { return ( {item.symbol.slice(0, 1)} ); } function HeaderTab({ item }: { item: NavLink }) { return ( {item.label} ); } function SearchField({ className }: { className?: string }) { return (