"use client"; import Image from "next/image"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { BookOpen, CalendarDays, ChartNoAxesColumnIncreasing, ChevronRight, MessageSquareText, UserRound, X, } from "lucide-react"; import { useAuth } from "@/lib/auth/useAuth"; import { cn } from "@/lib/utils"; const navigation = [ { label: "Today", href: "/tuition", icon: CalendarDays }, { label: "Learn Anything", href: "/learn-anything", icon: BookOpen }, { label: "Study Chat", href: "/study-chat", icon: MessageSquareText }, { label: "Progress", href: "/progress", icon: ChartNoAxesColumnIncreasing }, { label: "Profile", href: "/profile", icon: UserRound }, ] as const; function isActive(pathname: string, href: string) { return pathname === href || pathname.startsWith(`${href}/`); } export interface CleanSidebarProps { onNavigate?: () => void; onClose?: () => void; } export function CleanSidebar({ onNavigate, onClose }: CleanSidebarProps) { const pathname = usePathname() ?? ""; const { user } = useAuth(); const displayName = user?.name?.trim() || "Student"; const initials = displayName .split(/\s+/) .map((word) => word[0]) .join("") .slice(0, 2) .toUpperCase(); return ( ); }