'use client' import { Team } from '@/app/types/team' import { MatchPlayer } from '../types/match' import MatchPlayerCard from './MatchPlayerCard' import Image from 'next/image' import Button from './Button' import Table from './Table' type Props = { team: Team players: MatchPlayer[] onEditClick?: () => void editable?: boolean } function getTeamLogo(logo: string | null) { return logo ? `/assets/img/logos/${logo}` : '/default-logo.png' } const StatIcons = { kills: , deaths: , assist: , adr: , utildmg: , } export default function MatchTeamCard({ team, players, onEditClick, editable }: Props) { return (
{/* Gemeinsamer Rahmen mit Abrundung */}
{/* Teamkopf */}
{team.teamname

{team.teamname}

{editable &&
{/* Tabelle ohne extra Rahmen */} Name {StatIcons.kills} {StatIcons.deaths} {StatIcons.assist} {StatIcons.adr} {StatIcons.utildmg} {players.map(player => ( ))}
) }