"use client" import type { ElementType } from "react" import { Icon } from "@iconify/react" import { cn, formatCount } from "@/lib/utils" import { useEmailDropTarget } from "@/lib/drag-context" import { navRowRoundedWhenActive } from "@/components/gmail/sidebar/sidebar-nav-primitives" export function SidebarNavItem({ item, isSelected, unreadCount, isExpanded, onSelectFolder, }: { item: { id: string; label: string; icon: ElementType | string } isSelected: boolean unreadCount: number isExpanded: boolean onSelectFolder: (id: string) => void }) { const { isOver, dropHandlers } = useEmailDropTarget(item.id, item.label) const hasUnread = unreadCount > 0 const iconClassName = cn( "h-5 w-5 shrink-0", hasUnread && !isSelected && "text-gray-900" ) return ( ) }