import { getTranslations } from 'next-intl/server' import { getPlayersData, CLASS_INFO, raceBig, classMedium, classChest, ALLIANCE_ICON, HORDE_ICON, } from '@/lib/players' /* eslint-disable @next/next/no-img-element */ export async function PlayersBoard() { const t = await getTranslations('UI') const data = await getPlayersData() return ( <>

{t('players.updateNotice')}

{/* Personajes creados por clase */}

{t('players.charsByClass')}

{data.classStats.map((s) => (
{CLASS_INFO[s.id].label}
{t('players.total')} {s.total}

{t('players.allianceAlt')} {t('players.alliances')} {s.alliance}
{t('players.hordeAlt')} {t('players.hordes')} {s.horde}
))}
{t('players.totalChars')} {data.totals.total} {t('players.allianceChars')} {data.totals.alliance} {t('players.hordeChars')} {data.totals.horde}



{/* Primeros del Reino - Nivel 80 */}

{t('players.firstsTitle')}

{data.firsts.length === 0 ? (

{t('players.noLevel80')}

) : ( {data.firsts.map((f, i) => ( ))}
{t('players.thAchievement')} {t('players.thCharacter')} {t('players.thDate')}
{' '} {t('players.firstOfRealm')} {f.label} {f.name} {f.date}
)}



{/* Top de logros */}

{t('players.topAchTitle')}

{t('players.topAchSub')}

{data.topAch.map((r, i) => ( ))}
{t('players.thName')} {t('players.thRace')} {t('players.thClass')} {t('players.thAchPoints')}
{r.name} {r.value}



{/* Top de muertes con honor */}

{t('players.topHonorTitle')}

{t('players.topHonorSub')}

{data.topHonor.map((r, i) => ( ))}
{t('players.thName')} {t('players.thRace')} {t('players.thClass')} {t('players.thTotalKills')} {t('players.thTodayKills')}
{r.name} {r.total} {r.today}
) }