import type { Market, Source } from "@/lib/types";
import { getMarketMetadata } from "@/lib/mock-data/markets-metadata";

export const sourceLabels: Record<Source, string> = {
  vivino: "Vivino",
  cellartracker: "CellarTracker",
  reddit: "Reddit",
  lpv: "La Passion du Vin",
  "wine-spectator": "Wine Spectator",
  decanter: "Decanter",
  rvf: "RVF",
  suckling: "Suckling",
  vinatis: "Vinatis",
  millesima: "Millésima",
  "wine.com": "Wine.com",
  "berry-bros": "Berry Bros.",
  hawesko: "Hawesko"
};

export function marketLabel(code: Market) {
  return getMarketMetadata(code).name;
}
