"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 (
/
); } function WalletMenu() { return (
{data.wallet.address}
{data.wallet.status}
موجودی کل
{data.wallet.balance}
دارایی‌های برتر مشاهده همه
{walletAssets.map((asset) => (
{asset.name} {asset.symbol}
۰٫۰۰۹۵
))}
تأیید ۲FA
برای امنیت بیشتر ۲FA را فعال کنید
تأیید
تنظیمات کیف پول قطع اتصال کیف پول
نسخه ۱٫۵٫۶۹ قوانین و مقررات
); } function FavoritesMenu() { return (
علاقه‌مندی‌های من (۴)
{favorites.map((token) => (
{token.name} {token.symbol}
))}
); } function NotificationsMenu() { return (
اعلان‌ها
{notifications.map((item) => (
))}
); } function UserMenu() { return (
{data.user.name .split(" ") .map((part) => part[0]) .join("")}
{data.user.name}
{data.user.email}
حالت تیره تنظیمات حساب ترجیح‌ها راهنمای اعضای تیم انجمن خروج
نسخه ۲٫۸٫۶۹ قوانین و مقررات
); } function MobileMenu() { return ( {data.brand.name}
{navLinks.map((link) => ( {link.label} ))}
); } function BottomNav() { return ( ); } interface ApplicationShell14Props { className?: string; } export function ApplicationShell14({ className }: ApplicationShell14Props) { return (
۲۵ دلار پاداش خوش‌آمدگویی اولین مبادله را دریافت کنید
); }