'use client'; import { useTranslation } from 'react-i18next'; import type { IPlayerInfo } from '@/models/IPlayerInfo'; import style from '@/styles/web.module.scss'; type Props = { players: IPlayerInfo[]; }; export function PlayersList({ players }: Props) { const { t } = useTranslation(); return (

Players



{players.map((el) => { const charClass = style[`character-${el.name_id}` as keyof typeof style] ?? ''; return (
{t('player_name')}
{el.player_name}
{t('use_character')}
{el.name_jp}
{t('description')}
{el.description}
); })}
); }