|
|
@ -10,7 +10,9 @@ export interface PlayerPieceProps {
|
|
|
|
export function PlayerPiece({ team, text, hasBall }: PlayerPieceProps) {
|
|
|
|
export function PlayerPiece({ team, text, hasBall }: PlayerPieceProps) {
|
|
|
|
let className = `player-piece ${team}`
|
|
|
|
let className = `player-piece ${team}`
|
|
|
|
if (hasBall) {
|
|
|
|
if (hasBall) {
|
|
|
|
className += ` player-piece-has-ball`
|
|
|
|
className += " player-piece-has-ball"
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
className += " player-piece-has-no-ball"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|