Files
jitsi-meet/react/features/prejoin/components/web/country-picker/CountryDropdown.js
Saúl Ibarra Corretgé 2596c463fe fix(ts) make tsc (almost) not cry on native
Co-authored-by: Calinteodor <calin.chitu@8x8.com>
Co-authored-by: Robert Pintilii <robert.pin9@gmail.com>
2022-11-01 10:07:10 +01:00

36 lines
724 B
JavaScript

// @flow
import React from 'react';
import { countries } from '../../../utils';
import CountryRow from './CountryRow';
type Props = {
/**
* Click handler for a single entry.
*/
onEntryClick: Function,
};
/**
* This component displays the dropdown for the country picker.
*
* @returns {ReactElement}
*/
function CountryDropdown({ onEntryClick }: Props) {
return (
<div className = 'cpick-dropdown'>
{countries.map(country => (
<CountryRow
country = { country }
key = { `${country.code}` }
onEntryClick = { onEntryClick } />
))}
</div>
);
}
export default CountryDropdown;