feat: zap (#107)

This commit is contained in:
Cody Tseng
2025-03-01 23:52:05 +08:00
committed by GitHub
parent 407a6fb802
commit 249593d547
72 changed files with 2582 additions and 818 deletions

View File

@@ -1,5 +1,6 @@
import { Event } from 'nostr-tools'
import { useTranslation } from 'react-i18next'
import ContentPreview from '../ContentPreview'
import { SimpleUserAvatar } from '../UserAvatar'
export default function Title({ parentEvent }: { parentEvent?: Event }) {
@@ -9,7 +10,7 @@ export default function Title({ parentEvent }: { parentEvent?: Event }) {
<div className="flex gap-2 items-center w-full">
<div className="shrink-0">{t('Reply to')}</div>
<SimpleUserAvatar userId={parentEvent.pubkey} size="tiny" />
<div className="flex-1 w-0 truncate">{parentEvent.content}</div>
<ContentPreview className="flex-1 w-0 truncate h-5" event={parentEvent} />
</div>
) : (
t('New Note')