import type { Article } from '@/types/nostr' import { Button } from './ui' import { ArticlePages } from './ArticlePages' interface ArticlePreviewProps { article: Article loading: boolean onUnlock: () => void } export function ArticlePreview({ article, loading, onUnlock }: ArticlePreviewProps): React.ReactElement { if (article.paid) { return (
{article.preview}
{article.content}
{article.pages && article.pages.length > 0 &&{article.preview}
Contenu complet disponible après un zap de {article.zapAmount} sats