/**
 * Airport IATA → official site URL map. Mirrors Angular's
 * `ClientApp/src/app/shared/services/airports-data.service.ts`.
 * Used by the station-display terminal link.
 */
export const airportUrls: Readonly<Record<string, string>> = {
  SVO: "https://www.svo.aero/ru/main",
  VKO: "http://www.vnukovo.ru/",
  DME: "https://www.dme.ru/",
  ZIA: "http://www.zia.aero/",
};

export function airportUrl(airportCode: string | undefined | null): string | undefined {
  if (!airportCode) return undefined;
  return airportUrls[airportCode];
}
