import { Badge } from '@/components/ui/badge' import { TSignerType } from '@/types' import { useTranslation } from 'react-i18next' export default function SignerTypeBadge({ signerType }: { signerType: TSignerType }) { const { t } = useTranslation() if (signerType === 'nip-07') { return {t('Extension')} } else if (signerType === 'ncryptsec') { return ( {t('Encrypted Key')} ) } else if (signerType === 'nsec') { return ( {t('Private Key')} ) } else if (signerType === 'npub') { return NPUB } }