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 } export function AuthorPageContent({ presentation, series, totalSponsoring, authorPubkey, loading, error, onSeriesCreated, }: AuthorPageContentProps): React.ReactElement { if (loading) { return
{t('common.loading')}
} if (error) { return{error}
} if (!presentation) { return ({t('author.notFound')}