"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { Badge } from "@/components/ui/badge"; import { cn } from "@/lib/utils/ui"; type MobileNavLinkProps = { href: string; icon: React.ReactNode; children: React.ReactNode; onClick?: () => void; badge?: number; }; export function MobileNavLink({ href, icon, children, onClick, badge, }: MobileNavLinkProps) { const pathname = usePathname(); const isActive = href === "/dashboard" ? pathname === href : pathname === href || pathname.startsWith(`${href}/`); return ( {icon} {children} {badge && badge > 0 ? ( {badge} ) : null} ); } export function MobileSectionLabel({ label }: { label: string }) { return (

{label}

); }