export interface TargetCountry {
  code: string;
  name: string;
  currency: 'usd' | 'eur' | 'sgd';
  currencySymbol: string;
  flag: string;
}

export const targetCountries: TargetCountry[] = [
  { code: 'US', name: 'United States', currency: 'usd', currencySymbol: '$', flag: '🇺🇸' },
  { code: 'GB', name: 'United Kingdom', currency: 'eur', currencySymbol: '€', flag: '🇬🇧' },
  { code: 'DE', name: 'Germany', currency: 'eur', currencySymbol: '€', flag: '🇩🇪' },
  { code: 'FR', name: 'France', currency: 'eur', currencySymbol: '€', flag: '🇫🇷' },
  { code: 'NL', name: 'Netherlands', currency: 'eur', currencySymbol: '€', flag: '🇳🇱' },
  { code: 'SG', name: 'Singapore', currency: 'sgd', currencySymbol: 'S$', flag: '🇸🇬' },
  { code: 'AU', name: 'Australia', currency: 'usd', currencySymbol: '$', flag: '🇦🇺' },
  { code: 'HK', name: 'Hong Kong', currency: 'usd', currencySymbol: '$', flag: '🇭🇰' },
  { code: 'NZ', name: 'New Zealand', currency: 'usd', currencySymbol: '$', flag: '🇳🇿' },
];

export const APPLICATION_AMOUNT = 1490; // in cents
export const APPLICATION_DISPLAY_AMOUNT = '14.90';

export function getCurrencyForCountry(countryCode: string) {
  const country = targetCountries.find((c) => c.code === countryCode);
  return country?.currency ?? 'eur';
}

export function getCurrencySymbolForCountry(countryCode: string) {
  const country = targetCountries.find((c) => c.code === countryCode);
  return country?.currencySymbol ?? '€';
}

export const originCountries = [
  { code: 'IN', name: 'India', flag: '🇮🇳' },
  { code: 'PK', name: 'Pakistan', flag: '🇵🇰' },
  { code: 'BD', name: 'Bangladesh', flag: '🇧🇩' },
  { code: 'LK', name: 'Sri Lanka', flag: '🇱🇰' },
  { code: 'NP', name: 'Nepal', flag: '🇳🇵' },
  { code: 'PH', name: 'Philippines', flag: '🇵🇭' },
  { code: 'VN', name: 'Vietnam', flag: '🇻🇳' },
  { code: 'ID', name: 'Indonesia', flag: '🇮🇩' },
  { code: 'MM', name: 'Myanmar', flag: '🇲🇲' },
  { code: 'KH', name: 'Cambodia', flag: '🇰🇭' },
  { code: 'NG', name: 'Nigeria', flag: '🇳🇬' },
  { code: 'GH', name: 'Ghana', flag: '🇬🇭' },
  { code: 'KE', name: 'Kenya', flag: '🇰🇪' },
  { code: 'TZ', name: 'Tanzania', flag: '🇹🇿' },
  { code: 'UG', name: 'Uganda', flag: '🇺🇬' },
  { code: 'ET', name: 'Ethiopia', flag: '🇪🇹' },
  { code: 'ZA', name: 'South Africa', flag: '🇿🇦' },
  { code: 'EG', name: 'Egypt', flag: '🇪🇬' },
  { code: 'MA', name: 'Morocco', flag: '🇲🇦' },
  { code: 'SN', name: 'Senegal', flag: '🇸🇳' },
  { code: 'CM', name: 'Cameroon', flag: '🇨🇲' },
  { code: 'CI', name: "Côte d'Ivoire", flag: '🇨🇮' },
  { code: 'CN', name: 'China', flag: '🇨🇳' },
  { code: 'TH', name: 'Thailand', flag: '🇹🇭' },
  { code: 'MY', name: 'Malaysia', flag: '🇲🇾' },
];

export const jobSectors = [
  'information_technology',
  'healthcare',
  'engineering',
  'hospitality',
  'finance',
  'education',
  'construction',
  'agriculture',
  'manufacturing',
  'logistics',
  'retail',
  'other',
];

export const educationLevels = [
  'high_school',
  'diploma',
  'bachelors',
  'masters',
  'phd',
  'vocational',
  'other',
];
