1 import type { ImgHTMLAttributes } from 'react';
3 import clsx from '@proton/utils/clsx';
5 import { getFlagSvg } from '../flag';
7 export const CountryFlagAndName = ({
15 } & ImgHTMLAttributes<HTMLImageElement>) => {
16 const upperCode = (countryCode || '').toUpperCase();
17 const flag = getFlagSvg(upperCode);
22 <img width={20} className={clsx(['mx-2 border', className])} src={flag} alt={countryName} {...rest} />