import React from 'react' import type { Article } from '@/types/nostr' interface ArticlePreviewProps { article: Article connected: boolean loading: boolean onUnlock: () => void } export function ArticlePreview({ article, connected, loading, onUnlock }: ArticlePreviewProps) { if (article.paid) { return (

{article.preview}

{article.content}

) } return (

{article.preview}

Full content available after {article.zapAmount} sats zap

{connected ? ( ) : (

Connect with Nostr to unlock this article

)}
) }