"use client"; import Image from "next/image"; import { useTranslations } from "next-intl"; import { Link, usePathname } from "@/i18n/routing"; import { brand } from "@/data/brand"; import { navForRole } from "@/lib/auth/nav"; import { useAuth } from "@/providers/auth-provider"; import { cn } from "@/lib/utils"; import { ScrollArea } from "@/components/ui/scroll-area"; import { ChevronLeft, ChevronRight, X } from "lucide-react"; export function AppSidebar({ collapsed, onToggle, onNavigate, showClose = false, }: { collapsed: boolean; onToggle: () => void; onNavigate?: () => void; showClose?: boolean; }) { const t = useTranslations(); const pathname = usePathname(); const { user } = useAuth(); const items = user ? navForRole(user.activeRole) : []; return ( ); }