feat: support kind 20

This commit is contained in:
codytseng
2025-01-07 23:19:35 +08:00
parent 4205e32d0f
commit 4343765aba
30 changed files with 1221 additions and 712 deletions

View File

@@ -1,7 +1,6 @@
import { Image } from '@nextui-org/image'
import { generateImageByPubkey } from '@/lib/pubkey'
import { cn } from '@/lib/utils'
import { useEffect, useMemo, useState } from 'react'
import Image from '../Image'
export default function ProfileBanner({
pubkey,
@@ -27,9 +26,8 @@ export default function ProfileBanner({
<Image
src={bannerUrl}
alt={`${pubkey} banner`}
className={cn('z-0', className)}
className={className}
onError={() => setBannerUrl(defaultBanner)}
removeWrapper
/>
)
}