2022-02-17 02:45:18 +00:00
|
|
|
import React, { Component } from 'react';
|
|
|
|
import SvgIcon from '@mui/material/SvgIcon';
|
2022-02-19 10:45:42 +00:00
|
|
|
import SwapCallsIcon from '@mui/icons-material/SwapCalls';
|
2022-02-17 02:45:18 +00:00
|
|
|
|
2022-01-15 15:12:26 +00:00
|
|
|
export default function getFlags(code){
|
|
|
|
if(code == 'AUD') return '🇦🇺';
|
|
|
|
if(code == 'ARS') return '🇦🇷';
|
|
|
|
if(code == 'BRL') return '🇧🇷';
|
|
|
|
if(code == 'CAD') return '🇨🇦';
|
|
|
|
if(code == 'CHF') return '🇨🇭';
|
|
|
|
if(code == 'CLP') return '🇨🇱';
|
|
|
|
if(code == 'CNY') return '🇨🇳';
|
|
|
|
if(code == 'EUR') return '🇪🇺';
|
2022-01-16 15:18:23 +00:00
|
|
|
if(code == 'HRK') return '🇨🇷';
|
2022-01-15 15:12:26 +00:00
|
|
|
if(code == 'CZK') return '🇨🇿';
|
|
|
|
if(code == 'DKK') return '🇩🇰';
|
|
|
|
if(code == 'GBP') return '🇬🇧';
|
|
|
|
if(code == 'HKD') return '🇭🇰';
|
|
|
|
if(code == 'HUF') return '🇭🇺';
|
|
|
|
if(code == 'INR') return '🇮🇳';
|
|
|
|
if(code == 'ISK') return '🇮🇸';
|
|
|
|
if(code == 'JPY') return '🇯🇵';
|
|
|
|
if(code == 'KRW') return '🇰🇷';
|
|
|
|
if(code == 'MXN') return '🇲🇽';
|
|
|
|
if(code == 'NOK') return '🇳🇴';
|
|
|
|
if(code == 'NZD') return '🇳🇿';
|
|
|
|
if(code == 'PLN') return '🇵🇱';
|
|
|
|
if(code == 'RON') return '🇷🇴';
|
|
|
|
if(code == 'RUB') return '🇷🇺';
|
|
|
|
if(code == 'SEK') return '🇸🇪';
|
|
|
|
if(code == 'SGD') return '🇸🇬';
|
|
|
|
if(code == 'VES') return '🇻🇪';
|
|
|
|
if(code == 'TRY') return '🇹🇷';
|
|
|
|
if(code == 'USD') return '🇺🇸';
|
|
|
|
if(code == 'ZAR') return '🇿🇦';
|
2022-02-15 21:52:30 +00:00
|
|
|
if(code == 'COP') return '🇨🇴';
|
2022-02-15 22:16:25 +00:00
|
|
|
if(code == 'PEN') return '🇵🇪';
|
|
|
|
if(code == 'UYU') return '🇺🇾';
|
|
|
|
if(code == 'PYG') return '🇵🇾';
|
|
|
|
if(code == 'BOB') return '🇧🇴';
|
2022-02-28 19:20:53 +00:00
|
|
|
if(code == 'IDR') return '🇮🇩';
|
|
|
|
if(code == 'ANG') return '🇧🇶';
|
|
|
|
if(code == 'CRC') return '🇨🇷';
|
|
|
|
if(code == 'CUP') return '🇨🇺';
|
|
|
|
if(code == 'DOP') return '🇩🇴';
|
|
|
|
if(code == 'GHS') return '🇬🇭';
|
|
|
|
if(code == 'GTQ') return '🇬🇹';
|
|
|
|
if(code == 'ILS') return '🇮🇱';
|
|
|
|
if(code == 'JMD') return '🇯🇲';
|
|
|
|
if(code == 'KES') return '🇰🇪';
|
|
|
|
if(code == 'KZT') return '🇰🇿';
|
|
|
|
if(code == 'MYR') return '🇲🇲';
|
|
|
|
if(code == 'NAD') return '🇳🇦';
|
|
|
|
if(code == 'NGN') return '🇳🇬';
|
|
|
|
if(code == 'AZN') return '🇦🇿';
|
|
|
|
if(code == 'PAB') return '🇵🇦';
|
|
|
|
if(code == 'PHP') return '🇵🇭';
|
|
|
|
if(code == 'PKR') return '🇵🇰';
|
|
|
|
if(code == 'QAR') return '🇶🇦';
|
|
|
|
if(code == 'SAR') return '🇸🇦';
|
|
|
|
if(code == 'THB') return '🇹🇭';
|
|
|
|
if(code == 'TTD') return '🇹🇹';
|
|
|
|
if(code == 'VND') return '🇻🇳';
|
|
|
|
if(code == 'XOF') return '🇸🇳';
|
2022-03-24 16:27:43 +00:00
|
|
|
if(code == 'TWD') return '🇹🇼';
|
2022-02-28 19:20:53 +00:00
|
|
|
if(code == 'XAU') return '🟨';
|
2022-02-19 18:44:02 +00:00
|
|
|
if(code == 'BTC') return <SwapCallsIcon color="primary"/>;
|
2022-01-15 15:12:26 +00:00
|
|
|
return '🏳';
|
2022-03-24 16:27:43 +00:00
|
|
|
};
|