import {Component, Input} from '@angular/core';
import {NgIf} from "@angular/common";

export enum OsuGrade {
  SS = "Grade.SS",
  S = "Grade.S",
  A = "Grade.A",
  B = "Grade.B",
  C = "Grade.C",
  D = "Grade.D",
  SSH = "Grade.SSH",
  SH = "Grade.SH",
}

@Component({
  selector: 'app-osu-grade',
  standalone: true,
  imports: [
    NgIf
  ],
  templateUrl: './osu-grade.component.html',
  styleUrl: './osu-grade.component.css'
})
export class OsuGradeComponent {

  @Input() grade: string | null = null;

  getGradeEnum(): OsuGrade {
    return this.grade as OsuGrade;
  }

  protected readonly OsuGrade = OsuGrade;

}
