import { getTranslations, setRequestLocale } from 'next-intl/server' import { NoteLegend } from '@/components/NoteLegend' import { redirect } from '@/i18n/navigation' import { getSession } from '@/lib/session' import { getGameCharacters } from '@/lib/characters' import { PageShell } from '@/components/PageShell' import { ServiceBox } from '@/components/ServiceBox' import { CharacterActionForm } from '@/components/CharacterActionForm' /** Contenido de "Revivir personaje" (compartido por /revive y /revive-character). */ export async function ReviveServiceContent({ locale }: { locale: string }) { setRequestLocale(locale) const t = await getTranslations('Services') const session = await getSession() if (!session.bnetId) redirect({ href: '/log-in', locale }) if (!session.username) redirect({ href: '/select-account', locale }) const chars = await getGameCharacters(session.accountId!) return (

{t.rich('reviveInfo1', { b: (c) => {c} })}

{t('reviveInfo2')}


{t('reviveNote1')}

{t('reviveNote2')}

({ name: c.name, classCss: c.classCss }))} endpoint="/api/character/revive" actionLabel={t('reviveAction')} processingLabel={t('reviveProcessing')} doneLabel={t('reviveDone')} promptText={t('reviveChoose')} buttonClass="revive-button" />
) }