import { Card, Skeleton } from '../ui' import { t } from '@/lib/i18n' import type { AuthorPresentationArticle, Series } from '@/types/nostr' import { AuthorPageHeader } from './AuthorPageHeader' import { SponsoringSummary } from './SponsoringSummary' import { SeriesList } from './SeriesList' type AuthorPageContentProps = { presentation: AuthorPresentationArticle | null series: Series[] totalSponsoring: number authorPubkey: string loading: boolean error: string | null onSeriesCreated: () => void } function AuthorPageLoadingSkeleton(): React.ReactElement { return (
{Array.from({ length: 2 }, (_, index) => ( ))}
) } function AuthorPageError({ error }: { error: string }): React.ReactElement { return

{error}

} function AuthorPageNotFound(): React.ReactElement { return (

{t('author.notFound')}

) } export function AuthorPageContent({ presentation, series, totalSponsoring, authorPubkey, loading, error, onSeriesCreated, }: AuthorPageContentProps): React.ReactElement { if (loading) { return } if (error) { return } if (!presentation) { return } return ( <> ) }