export type LeagueRole = 'owner' | 'admin' | 'steward' | 'member';

export interface LeagueRoleDisplayData {
  text: string;
  badgeClasses: string;
}

export const leagueRoleDisplay: Record<LeagueRole, LeagueRoleDisplayData> = {
  owner: {
    text: 'Owner',
    badgeClasses: 'bg-yellow-500/10 text-yellow-500 border-yellow-500/30',
  },
  admin: {
    text: 'Admin',
    badgeClasses: 'bg-purple-500/10 text-purple-400 border-purple-500/30',
  },
  steward: {
    text: 'Steward',
    badgeClasses: 'bg-blue-500/10 text-blue-400 border-blue-500/30',
  },
  member: {
    text: 'Member',
    badgeClasses: 'bg-primary-blue/10 text-primary-blue border-primary-blue/30',
  },
} as const;

// For backward compatibility, also export the class with static method
export class LeagueRoleDisplay {
  static getLeagueRoleDisplay(role: LeagueRole) {
    return leagueRoleDisplay[role];
  }
}