11import React from 'react'
2- import { CircleFlag } from 'react-circle-flags'
2+ import { CircleFlag , countries } from 'react-circle-flags'
33
44export const Container = ( { children } ) => (
55 < div
@@ -24,368 +24,9 @@ export const Item = ({ children }) => (
2424 </ div >
2525)
2626
27- const countryMap = {
28- ac : 'Ascension' ,
29- ad : 'Andorra' ,
30- ae : 'United Arab Emirates' ,
31- af : 'Afghanistan' ,
32- afar : 'Afar' ,
33- ag : 'Antigua and Barbuda' ,
34- ai : 'Anguilla' ,
35- al : 'Albania' ,
36- am : 'Armenia' ,
37- ao : 'Angola' ,
38- aq : 'Antarctica' ,
39- ar : 'Argentina' ,
40- as : 'American Samoa' ,
41- at : 'Austria' ,
42- au : 'Australia' ,
43- 'au-aboriginal' : 'Aboriginal Australians' ,
44- 'au-act' : 'Australian Capital Territory' ,
45- 'au-nt' : 'Australian Northern Territory' ,
46- 'au-qld' : 'Queensland' ,
47- 'au-tas' : 'Tasmania' ,
48- 'au-vic' : 'Victoria' ,
49- 'au-wa' : 'Western Australia' ,
50- aw : 'Aruba' ,
51- ax : 'Åland Islands' ,
52- az : 'Azerbaijan' ,
53- ba : 'Bosnia and Herzegovina' ,
54- bb : 'Barbados' ,
55- bd : 'Bangladesh' ,
56- be : 'Belgium' ,
57- bf : 'Burkina Faso' ,
58- bg : 'Bulgaria' ,
59- bh : 'Bahrain' ,
60- bi : 'Burundi' ,
61- bj : 'Benin' ,
62- bl : 'Saint Barthélemy' ,
63- bm : 'Bermuda' ,
64- bn : 'Brunei' ,
65- bo : 'Bolivia' ,
66- 'bq-bo' : 'Bonaire' ,
67- 'bq-sa' : 'Saba' ,
68- 'bq-se' : 'Sint Eustatius' ,
69- bq : 'Bonaire' ,
70- br : 'Brazil' ,
71- bs : 'Bahamas' ,
72- bt : 'Bhutan' ,
73- bv : 'Bouvet Island' ,
74- bw : 'Botswana' ,
75- by : 'Belarus' ,
76- bz : 'Belize' ,
77- 'ca-bc' : 'British Columbia' ,
78- ca : 'Canada' ,
79- cc : 'Cocos (Keeling) Islands' ,
80- cd : 'Congo, Democratic Republic of the' ,
81- cf : 'Central African Republic' ,
82- cg : 'Congo' ,
83- ch : 'Switzerland' ,
84- 'ch-gr' : 'Grisons' ,
85- ci : 'Ivory Coast' ,
86- ck : 'Cook Islands' ,
87- cl : 'Chile' ,
88- cm : 'Cameroon' ,
89- cn : 'China' ,
90- 'cn-xj' : 'Xinjiang' ,
91- co : 'Colombia' ,
92- cp : 'Clipperton Island' ,
93- cq : 'Island of Sark' ,
94- cr : 'Costa Rica' ,
95- cu : 'Cuba' ,
96- cv : 'Cabo Verde' ,
97- cw : 'Curaçao' ,
98- cx : 'Christmas Island' ,
99- cy : 'Cyprus' ,
100- cz : 'Czechia' ,
101- de : 'Germany' ,
102- dj : 'Djibouti' ,
103- dk : 'Denmark' ,
104- dm : 'Dominica' ,
105- dg : 'Diego Garcia' ,
106- do : 'Dominican Republic' ,
107- dz : 'Algeria' ,
108- ea : 'Ceuta' ,
109- earth : 'Earth' ,
110- east_african_federation : 'East African Federation' ,
111- easter_island : 'Easter Island' ,
112- 'ec-w' : 'Galápagos' ,
113- ec : 'Ecuador' ,
114- ee : 'Estonia' ,
115- eg : 'Egypt' ,
116- eh : 'Western Sahara' ,
117- er : 'Eritrea' ,
118- 'es-ar' : 'Aragón' ,
119- 'es-ce' : 'Ceuta' ,
120- 'es-cn' : 'Canary Islands' ,
121- 'es-ct' : 'Catalonia' ,
122- 'es-ga' : 'Galicia' ,
123- 'es-ib' : 'Balearic Islands' ,
124- 'es-ml' : 'Melilla' ,
125- 'es-pv' : 'Basque Country' ,
126- 'es-variant' : 'Spain' ,
127- es : 'Spain' ,
128- et : 'Ethiopia' ,
129- 'et-or' : 'Oromia' ,
130- 'et-ti' : 'Tigrai' ,
131- eu : 'European Union' ,
132- european_union : 'European Union' ,
133- ewe : 'Ewe nation' ,
134- fi : 'Finland' ,
135- fj : 'Fiji' ,
136- fk : 'Falkland Islands (Malvinas)' ,
137- fm : 'Micronesia' ,
138- fo : 'Faroe Islands' ,
139- fr : 'France' ,
140- 'fr-20r' : '' ,
141- 'fr-bre' : 'Bretagne' ,
142- 'fr-cp' : 'Clipperton Island' ,
143- fx : 'France' ,
144- ga : 'Gabon' ,
145- 'gb-con' : 'Cornwall' ,
146- 'gb-eng' : 'England' ,
147- 'gb-nir' : 'Northern Ireland' ,
148- 'gb-ork' : 'Orkney' ,
149- 'gb-sct' : 'Scotland' ,
150- 'gb-wls' : 'Wales' ,
151- gb : 'United Kingdom' ,
152- gd : 'Grenada' ,
153- 'ge-ab' : 'Abkhazia' ,
154- ge : 'Georgia' ,
155- gf : 'French Guiana' ,
156- gg : 'Guernsey' ,
157- gh : 'Ghana' ,
158- gi : 'Gibraltar' ,
159- gl : 'Greenland' ,
160- gm : 'Gambia' ,
161- gn : 'Guinea' ,
162- gp : 'Guadeloupe' ,
163- gq : 'Equatorial Guinea' ,
164- gr : 'Greece' ,
165- gs : 'South Georgia and the South Sandwich Islands' ,
166- gt : 'Guatemala' ,
167- guarani : 'Guarani' ,
168- gu : 'Guam' ,
169- gw : 'Guinea-Bissau' ,
170- gy : 'Guyana' ,
171- hausa : 'Hausa' ,
172- hk : 'Hong Kong' ,
173- hmong : 'Hmong' ,
174- hm : 'Heard Island and McDonald Islands' ,
175- hn : 'Honduras' ,
176- hr : 'Croatia' ,
177- ht : 'Haiti' ,
178- hu : 'Hungary' ,
179- ic : 'Canary Islands' ,
180- id : 'Indonesia' ,
181- 'id-jb' : 'West Java' ,
182- 'id-jt' : 'Central Java' ,
183- ie : 'Ireland' ,
184- il : 'Israel' ,
185- im : 'Isle of Man' ,
186- in : 'India' ,
187- 'in-as' : 'Assam' ,
188- 'in-gj' : 'Gujarat' ,
189- 'in-ka' : 'Karnātaka' ,
190- 'in-or' : 'Odisha' ,
191- 'in-tn' : 'Tamil Nadu' ,
192- io : 'British Indian Ocean Territory' ,
193- iq : 'Iraq' ,
194- ir : 'Iran' ,
195- is : 'Iceland' ,
196- 'it-23' : 'Aosta' ,
197- 'it-82' : 'Sicily' ,
198- 'it-88' : 'Sardinia' ,
199- it : 'Italy' ,
200- je : 'Jersey' ,
201- jm : 'Jamaica' ,
202- jo : 'Jordan' ,
203- jp : 'Japan' ,
204- kanuri : 'Kanuri' ,
205- ke : 'Kenya' ,
206- kg : 'Kyrgyzstan' ,
207- kh : 'Cambodia' ,
208- ki : 'Kiribati' ,
209- kikuyu : 'Kikuyu' ,
210- km : 'Comoros' ,
211- kn : 'Saint Kitts and Nevis' ,
212- kongo : 'Kongo' ,
213- kp : 'North Korea' ,
214- kr : 'South Korea' ,
215- kurdistan : 'Kurdistan' ,
216- kw : 'Kuwait' ,
217- ky : 'Cayman Islands' ,
218- kz : 'Kazakhstan' ,
219- la : 'Laos' ,
220- lb : 'Lebanon' ,
221- lc : 'Saint Lucia' ,
222- li : 'Liechtenstein' ,
223- lk : 'Sri Lanka' ,
224- lr : 'Liberia' ,
225- ls : 'Lesotho' ,
226- lt : 'Lithuania' ,
227- lu : 'Luxembourg' ,
228- lv : 'Latvia' ,
229- ly : 'Libya' ,
230- ma : 'Morocco' ,
231- malayali : 'Malayali' ,
232- manipur : 'Manipur' ,
233- maori : 'Maori' ,
234- mc : 'Monaco' ,
235- md : 'Moldova' ,
236- me : 'Montenegro' ,
237- mf : 'Saint-Martin' ,
238- mg : 'Madagascar' ,
239- mh : 'Marshall Islands' ,
240- mizoram : 'Mizoram' ,
241- mk : 'North Macedonia' ,
242- ml : 'Mali' ,
243- mm : 'Myanmar' ,
244- mn : 'Mongolia' ,
245- mo : 'Macao' ,
246- mp : 'Northern Mariana Islands' ,
247- mq : 'Martinique' ,
248- mr : 'Mauritania' ,
249- ms : 'Montserrat' ,
250- mt : 'Malta' ,
251- mu : 'Mauritius' ,
252- mv : 'MalItemes' ,
253- mw : 'Malawi' ,
254- mx : 'Mexico' ,
255- my : 'Malaysia' ,
256- mz : 'Mozambique' ,
257- na : 'Namibia' ,
258- nc : 'New Caledonia' ,
259- nato : 'NATO' ,
260- ne : 'Niger' ,
261- nf : 'Norfolk Island' ,
262- ng : 'Nigeria' ,
263- ni : 'Nicaragua' ,
264- nl : 'Netherlands' ,
265- 'nl-fr' : 'Friesland' ,
266- no : 'Norway' ,
267- northern_cyprus : 'Northern Cyprus' ,
268- np : 'Nepal' ,
269- nr : 'Nauru' ,
270- nu : 'Niue' ,
271- nz : 'New Zealand' ,
272- occitania : 'Occitania' ,
273- olympics : 'Olympics' ,
274- om : 'Oman' ,
275- otomi : 'Otomi' ,
276- pa : 'Panama' ,
277- pe : 'Peru' ,
278- pf : 'French Polynesia' ,
279- pg : 'Papua New Guinea' ,
280- ph : 'Philippines' ,
281- pk : 'Pakistan' ,
282- 'pk-jk' : 'Kashmīr' ,
283- 'pk-sd' : 'Sindh' ,
284- pl : 'Poland' ,
285- pm : 'Saint Pierre and Miquelon' ,
286- pn : 'Pitcairn Islands' ,
287- pr : 'Puerto Rico' ,
288- ps : 'Palestine' ,
289- 'pt-20' : 'Azores' ,
290- 'pt-30' : 'Madeira' ,
291- pt : 'Portugal' ,
292- pw : 'Palau' ,
293- py : 'Paraguay' ,
294- qa : 'Qatar' ,
295- quechua : 'Quechua' ,
296- re : 'Réunion' ,
297- ro : 'Romania' ,
298- rs : 'Serbia' ,
299- ru : 'Russia' ,
300- 'ru-ba' : 'Bashkortostan, Respublika' ,
301- 'ru-ce' : 'Chechenskaya Respublika' ,
302- 'ru-cu' : 'Chuvashskaya Respublika' ,
303- 'ru-da' : 'Dagestan, Respublika' ,
304- 'ru-ko' : 'Komi, Respublika' ,
305- 'ru-ta' : 'Tatarstan' ,
306- 'ru-ud' : 'Udmurtskaya Respublika' ,
307- rw : 'Rwanda' ,
308- sa : 'Saudi Arabia' ,
309- sami : 'Sami' ,
310- sb : 'Solomon Islands' ,
311- sc : 'Seychelles' ,
312- sd : 'Sudan' ,
313- se : 'Sweden' ,
314- sg : 'Singapore' ,
315- sh : 'Saint Helena' ,
316- 'sh-hl' : 'Saint Helena' ,
317- 'sh-ac' : 'Ascension Island' ,
318- 'sh-ta' : 'Tristan da Cunha' ,
319- si : 'Slovenia' ,
320- sj : 'Svalbard and Jan Mayen' ,
321- sk : 'Slovakia' ,
322- sl : 'Sierra Leone' ,
323- sm : 'San Marino' ,
324- sn : 'Senegal' ,
325- so : 'Somalia' ,
326- somaliland : 'Somaliland' ,
327- south_ossetia : 'South Ossetia' ,
328- soviet_union : 'Soviet Union' ,
329- sr : 'Suriname' ,
330- ss : 'South Sudan' ,
331- st : 'São Tomé and Príncipe' ,
332- su : 'Soviet Union' ,
333- sv : 'El Salvador' ,
334- sx : 'Sint Maarten' ,
335- sy : 'Syria' ,
336- sz : 'Eswatini' ,
337- ta : 'Tristan da Cunha' ,
338- tc : 'Turks and Caicos Islands' ,
339- td : 'Chad' ,
340- tf : 'French Southern Territories' ,
341- tg : 'Togo' ,
342- th : 'Thailand' ,
343- tibet : 'Tibet' ,
344- tj : 'Tajikistan' ,
345- tk : 'Tokelau' ,
346- tl : 'Timor-Leste' ,
347- tm : 'Turkmenistan' ,
348- tn : 'Tunisia' ,
349- to : 'Tonga' ,
350- torres_strait_islands : 'Torres Strait Islands' ,
351- tr : 'Turkey' ,
352- transnistria : 'Transnistria' ,
353- tt : 'Trinidad and Tobago' ,
354- tv : 'Tuvalu' ,
355- tw : 'Taiwan' ,
356- tz : 'Tanzania' ,
357- ua : 'Ukraine' ,
358- ug : 'Uganda' ,
359- uk : 'United Kingdom' ,
360- united_nations : 'United Nations' ,
361- um : 'U.S. Minor Outlying Islands' ,
362- 'us-hi' : 'Hawaii' ,
363- un : 'United Nations' ,
364- us : 'United States of America' ,
365- uy : 'Uruguay' ,
366- uz : 'Uzbekistan' ,
367- va : 'Holy See (Vatican)' ,
368- vc : 'Saint Vincent and the Grenadines' ,
369- ve : 'Venezuela' ,
370- vg : 'Virgin Islands (British)' ,
371- vi : 'Virgin Islands (U.S.)' ,
372- vn : 'Vietnam' ,
373- vu : 'Vanuatu' ,
374- wf : 'Wallis and Futuna' ,
375- wiphala : 'Wiphala' ,
376- ws : 'Samoa' ,
377- xk : 'Kosovo' ,
378- ye : 'Yemen' ,
379- yt : 'Mayotte' ,
380- yorubaland : 'Yorubaland' ,
381- za : 'South Africa' ,
382- zm : 'Zambia' ,
383- zw : 'Zimbabwe'
384- }
385-
38627export const Gallery = ( ) => (
38728 < >
388- { Object . keys ( countryMap ) . map ( ( countryCode ) => (
29+ { Object . keys ( countries ) . map ( ( countryCode ) => (
38930 < Item key = { countryCode } >
39031 < CircleFlag
39132 countryCode = { countryCode }
0 commit comments