"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { cn } from "@/lib/utils" import { BookOpen } from "lucide-react" import { useAuth } from "@/context/auth-context" export function MainNav() { const pathname = usePathname() const { user } = useAuth() return (