'use client' import * as React from 'react' import { Shield } from 'lucide-react' import { useT } from '@open-mercato/shared/lib/i18n/context' import { Badge } from '@open-mercato/ui/primitives/badge' import type { ProviderListComponentProps } from '../mfa-ui-registry' import MfaConfiguredBadge from './MfaConfiguredBadge' import MfaProviderListRow from './MfaProviderListRow' export default function PasskeyProviderListItem({ provider, configuredCount, onClick, }: ProviderListComponentProps) { const t = useT() const keysLabel = configuredCount === 1 ? t('security.profile.mfa.providers.passkey.keySingle', '1 key') : t('security.profile.mfa.providers.passkey.keyMany', '{count} keys', { count: String(configuredCount) }) const configuredLabel = t('security.profile.mfa.providers.totp.configured', 'Configured') return ( } badge={configuredCount > 0 ? ( {keysLabel} ) : undefined} onClick={onClick} /> ) }