const AVATAR_COLORS = [
  "bg-blue-500",
  "bg-green-500",
  "bg-purple-500",
  "bg-pink-500",
  "bg-amber-500",
  "bg-red-500",
  "bg-indigo-500",
  "bg-teal-500",
];

/** Returns a consistent Tailwind bg color class for a given team name. */
export function getAvatarColor(teamName: string): string {
  const hash = teamName
    .split("")
    .reduce((acc, char) => acc + char.charCodeAt(0), 0);
  return AVATAR_COLORS[hash % AVATAR_COLORS.length];
}
