import { useReportedPaymentsCount } from '../../features/payments/reportedPayments' import { useTranslation } from 'react-i18next' import { cn } from '../../lib/utils' /* Counter of a nav item: today only "Pagos para verificar" on Cobros. The number is in the accessible name too (sr-only), not only in the dot. */ export function NavBadge({ kind, className }: { kind: 'reported-payments'; className?: string }) { const count = useReportedPaymentsCount() const { t } = useTranslation('layout') if (kind !== 'reported-payments' || count === 0) return null return ( {t('reportedPayments', { count })} ) }