feat: mentions

This commit is contained in:
codytseng
2025-01-23 11:01:49 +08:00
parent c92545a22d
commit 86468e75cb
9 changed files with 280 additions and 28 deletions

View File

@@ -1,8 +1,12 @@
import { useFetchProfile } from '@/hooks'
import { useFetchNip05 } from '@/hooks/useFetchNip05'
import { BadgeAlert, BadgeCheck } from 'lucide-react'
export default function Nip05({ nip05, pubkey }: { nip05?: string; pubkey: string }) {
const { nip05IsVerified, nip05Name, nip05Domain } = useFetchNip05(nip05, pubkey)
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 &&