import Link from 'next/link' import Image from 'next/image' import type { Article } from '@/types/nostr' import { t } from '@/lib/i18n' interface AuthorCardProps { presentation: Article } export function AuthorCard({ presentation }: AuthorCardProps) { const authorName = presentation.title.replace(/^Présentation de /, '') || t('common.author') const totalBTC = (presentation.totalSponsoring ?? 0) / 100_000_000 return (
{presentation.bannerUrl && (
{authorName}
)}

{authorName}

{presentation.preview}

{presentation.totalSponsoring !== undefined && presentation.totalSponsoring > 0 && (
{t('author.sponsoring.total', { amount: totalBTC.toFixed(6) })} BTC
)}
) }