/**
 * DriverRegistrationStatusDisplay
 *
 * Deterministic mapping of driver registration boolean state
 * to UI labels and variants.
 */

export class DriverRegistrationStatusDisplay {
  static statusMessage(isRegistered: boolean): string {
    return isRegistered ? "Registered for this race" : "Not registered";
  }

  static statusBadgeVariant(isRegistered: boolean): string {
    return isRegistered ? "success" : "warning";
  }

  static registrationButtonText(isRegistered: boolean): string {
    return isRegistered ? "Withdraw" : "Register";
  }
}
