Files
NowChess-Frontend/src/app/components/player-card/player-card.component.ts
T
2026-05-14 23:38:06 +00:00

19 lines
543 B
TypeScript

import { Component, Input } from '@angular/core';
@Component({
selector: 'app-player-card',
standalone: true,
imports: [],
templateUrl: './player-card.component.html',
styleUrl: './player-card.component.css'
})
export class PlayerCardComponent {
@Input({ required: true }) name = '';
@Input({ required: true }) initial = '';
@Input({ required: true }) color: 'white' | 'black' = 'white';
@Input() isActive = false;
@Input() clockDisplay = '--:--';
@Input() isLowTime = false;
@Input() capturedPieces: string[] = [];
}