"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { motion } from "framer-motion"; import { useAuth } from "@/lib/auth-context"; import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import { Skeleton } from "@/components/ui/skeleton"; import { Trophy, FileCode, LogOut, User, ChevronDown, LayoutDashboard, Terminal, } from "lucide-react"; import { cn } from "@/lib/utils"; import { VolguLogo, CyberBrandText } from "@/components/VolguLogo"; const API_URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000"; const navLinks = [ { href: "/contests", label: "Контесты", icon: Trophy }, { href: "/submissions", label: "Мои решения", icon: FileCode }, ]; export function Navbar() { const { user, logout, isLoading } = useAuth(); const pathname = usePathname(); const isActive = (href: string) => { if (href === "/") return pathname === href; return pathname.startsWith(href); }; return ( ); }