// /src/app/[locale]/components/MatchPlayerCard.tsx import Table from './Table' import Image from 'next/image' import { MatchPlayer } from '../../../types/match' type Props = { player: MatchPlayer } /** Safeties für optionale/lockere Stats-Felder */ type StatsShape = { adr?: unknown hsPercent?: unknown } function getAdr(stats: unknown): number | null { if (stats && typeof stats === 'object') { const v = (stats as StatsShape).adr return typeof v === 'number' ? v : null } return null } function getHsPercent(stats: unknown): number | null { if (stats && typeof stats === 'object') { const v = (stats as StatsShape).hsPercent return typeof v === 'number' ? v : null } return null } export default function MatchPlayerCard({ player }: Props) { const adr = getAdr(player.stats) const hsPercent = getHsPercent(player.stats) return (