/** Prize scope order, including starter and consolation. */

import type { TFunction } from "i18next";

export const PRIZE_SCOPE_ORDER = [
  "first",
  "second",
  "third",
  "starter",
  "consolation",
] as const;

export type PrizeScopeCode = (typeof PRIZE_SCOPE_ORDER)[number];

/** Display-only multiplier hints for starter and consolation grouped prizes. */
export const PRIZE_SCOPE_MULTIPLIER_HINT: Partial<Record<PrizeScopeCode, string>> = {
  starter: "× 10",
  consolation: "× 10",
};

/** Localized prize-scope label for odds / rebate config screens. */
export function prizeScopeLabel(scope: PrizeScopeCode, t: TFunction): string {
  return t(`prizeScopes.${scope}`, { ns: "config" });
}
