import React from 'react';
import classNames from 'classnames';
export default function createCountryIconComponent(_ref) {
  var flags = _ref.flags,
      flagUrl = _ref.flagUrl,
      FlagComponent = _ref.flagComponent,
      InternationalIcon = _ref.internationalIcon;
  return function (_ref2) {
    var country = _ref2.country;
    return React.createElement("div", {
      className: classNames('PhoneInputCountryIcon', {
        'PhoneInputCountryIcon--square': country === undefined
      })
    }, country ? React.createElement(FlagComponent, {
      country: country,
      flags: flags,
      flagUrl: flagUrl
    }) : React.createElement(InternationalIcon, null));
  };
}
//# sourceMappingURL=CountryIcon.js.map