import { MatchState } from '@interfaces/matches';

export function getMatchStateLabel(state: MatchState): string {
  switch (state) {
    case MatchState.NOT_STARTED:
      return 'À venir';
    case MatchState.ONGOING:
      return 'En cours';
    case MatchState.OVER:
      return 'Terminé';
    default:
      return 'Inconnu';
  }
}

export function getMatchStateColor(state: MatchState): string {
  switch (state) {
    case MatchState.NOT_STARTED:
      return 'secondary';
    case MatchState.ONGOING:
      return 'warning';
    case MatchState.OVER:
      return 'success';
    default:
      return 'light';
  }
}
