import { TeamInvite } from './OrganizerPanel.jsx'; export default function TeamCard({ team, side, state, viewer, isOrg, act, busy }) { const isOwnTeam = viewer.team === side; const inLobby = state.status === 'lobby'; const me = team.players.find((p) => p.isYou); const emptySlots = Math.max(0, team.teamSize - team.players.length); const canManageCaptain = isOrg || (viewer.isCaptain && isOwnTeam); const { readiness } = team; return (

{team.name}

{readiness.ready ? 'Bereit' : `${readiness.count}/${team.teamSize}`}
{me && inLobby && (
)} {inLobby && !readiness.enough &&

Es fehlen noch {team.teamSize - readiness.count} Spieler.

} {isOrg && state.organizer && }
); }