import type { TFunction } from "i18next";

export function getBillboardDisplayTypeLabel(
  t: TFunction<"common">,
  type?: string
): string {
  switch (type) {
    case "special":
      return t("billboards.displayTypes.specialBadge");
    case "normal":
      return t("billboards.displayTypes.normal");
    case "free":
      return t("billboards.displayTypes.free");
    case "highlight":
      return t("billboards.displayTypes.highlight");
    default:
      return t("billboards.displayTypes.highlight");
  }
}

export function getBillboardDisplayTypeOptionLabel(
  t: TFunction<"common">,
  type?: string
): string {
  switch (type) {
    case "normal":
    case "free":
      return t("billboards.displayTypes.normal");
    case "special":
      return t("billboards.displayTypes.special");
    case "highlight":
      return t("billboards.displayTypes.highlight");
    default:
      return t("billboards.displayTypes.highlight");
  }
}
