import React, { type FC } from 'react';
import cn from 'classnames';
import { flagSprite } from './flagSprite';
import styles from './index.module.css';
export type FlagIconProps = {
/**
* Код страны из ISO 3166-1 alpha-2
*/
country?: string;
/**
* Дополнительный класс
*/
className?: string;
};
/**
* Компонент флага в виде иконки.
*/
export const FlagIcon: FC = ({ country = '', className }) =>
flagSprite[country] ? (
) : (
);