"use client" import { BarChart3, Contact, Home, Settings, Zap, CheckSquare, DollarSign } from "lucide-react" import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, } from "@/components/ui/sidebar" import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import Link from "next/link" import { usePathname } from "next/navigation" import { useTranslation } from "@/lib/i18n" const menuItems = [ { key: "dashboard", url: "/", icon: Home }, { key: "deals", url: "/deals", icon: DollarSign }, { key: "contacts", url: "/contacts", icon: Contact }, { key: "tasks", url: "/tasks", icon: CheckSquare }, { key: "integrations", url: "/integrations", icon: Zap }, { key: "settings", url: "/settings", icon: Settings }, ] export function AppSidebar() { const pathname = usePathname() const { t } = useTranslation() return (
{t("app.name")}
{menuItems.map((item) => ( {t(`nav.${item.key}`)} ))}
JD
{t("sidebar.userName")} {t("sidebar.userRole")}
) }