feat: 💨

This commit is contained in:
codytseng 2025-09-11 09:19:41 +08:00
parent 63869ef3b7
commit 6571468150
19 changed files with 55 additions and 28 deletions

View file

@ -0,0 +1,17 @@
import { getUsingClient } from '@/lib/event'
import { NostrEvent } from 'nostr-tools'
import { useMemo } from 'react'
import { useTranslation } from 'react-i18next'
export default function ClientTag({ event }: { event: NostrEvent }) {
const { t } = useTranslation()
const usingClient = useMemo(() => getUsingClient(event), [event])
if (!usingClient) return null
return (
<span className="text-sm text-muted-foreground shrink-0">
{t('via {{client}}', { client: usingClient })}
</span>
)
}