import { useFetchProfile } from '@/hooks' import { useFetchNip05 } from '@/hooks/useFetchNip05' import { BadgeAlert, BadgeCheck } from 'lucide-react' export default function Nip05({ pubkey }: { pubkey: string }) { const { profile } = useFetchProfile(pubkey) const { nip05IsVerified, nip05Name, nip05Domain } = useFetchNip05(profile?.nip05, pubkey) if (!profile?.nip05) return null return ( nip05Name && nip05Domain && (
{nip05Name !== '_' ? (
@{nip05Name}
) : null} {nip05IsVerified ? : }
{nip05Domain}
) ) }