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.preview}
{presentation.totalSponsoring !== undefined && presentation.totalSponsoring > 0 && (