import { VegaCountryCode } from '../../types/flag.type';

/**
 * Country metadata used by the phone number input.
 */
export type VegaCountryType = {
	/**
	 * Telephone calling code for the country.
	 */
	callingCode: string;
	/**
	 * Country code identifier.
	 */
	countryCode: VegaCountryCode;
	/**
	 * Localized display name for the country.
	 */
	name: string;
};

/**
 * Map of country codes to localized country names.
 */
export type VegaCountryNameType = {
	[countryCode in VegaCountryCode]: string;
};
