"use client" import { Avatar, AvatarFallback } from "@/components/ui/avatar" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" import { Separator } from "@/components/ui/separator" import { Languages, Menu, X } from "lucide-react" import Link from "next/link" import { useState } from "react" import { usePathname } from "next/navigation" import { cn } from "@/lib/utils" import { LayoutDashboard, Key, BookText, CreditCard, ChevronLeft, } from "lucide-react" const navItems = [ { label: "Overview", href: "/dashboard", icon: LayoutDashboard }, { label: "API Keys", href: "/dashboard/api-keys", icon: Key }, { label: "Glossaries & Context", href: "/dashboard/glossaries", icon: BookText }, { label: "Billing", href: "/dashboard/billing", icon: CreditCard }, ] export function DashboardHeader() { const [mobileOpen, setMobileOpen] = useState(false) const pathname = usePathname() return ( <>
{/* Mobile menu button */} {/* Mobile brand */}
Office Translator
{/* Page title - desktop */}

Dashboard

Manage your API and translation settings
{/* Right side */}
Pro Plan JD
{/* Mobile navigation drawer */} {mobileOpen && (
)} ) }