diff --git a/src/components/Profile/ProfileBadges.tsx b/src/components/Profile/ProfileBadges.tsx new file mode 100644 index 00000000..d2424a18 --- /dev/null +++ b/src/components/Profile/ProfileBadges.tsx @@ -0,0 +1,56 @@ +import { Skeleton } from '@/components/ui/skeleton' +import { useProfileWall } from '@/hooks/useProfileWall' +import { useTranslation } from 'react-i18next' + +export default function ProfileBadges({ + pubkey, + profileEventId +}: { + pubkey: string + profileEventId?: string +}) { + const { t } = useTranslation() + const { badges, isLoading } = useProfileWall(pubkey, profileEventId) + + if (isLoading && badges.length === 0) { + return ( +
{t('No reports received')}
+{t('No reports received')}
) : ({t('No reports made')}
+{t('No reports made')}
) : ({t('Profile metadata not loaded yet')}
- ) : comments.length === 0 ? ( -{t('No wall comments yet')}
- ) : ( -