"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _ = require("../../../..");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var CountryCodeLabel = function CountryCodeLabel(_ref) {
  var _ref$countryCode = _ref.countryCode,
    countryCode = _ref$countryCode === void 0 ? 'se' : _ref$countryCode,
    _ref$prefixCode = _ref.prefixCode,
    prefixCode = _ref$prefixCode === void 0 ? '+46' : _ref$prefixCode,
    _ref$noPrefix = _ref.noPrefix,
    noPrefix = _ref$noPrefix === void 0 ? false : _ref$noPrefix;
  return _react.default.createElement(_.Flexbox, {
    container: true,
    alignItems: "center",
    gap: 2
  }, _react.default.createElement(_.Flexbox, {
    item: true
  }, _react.default.createElement(_.Flag, {
    country: countryCode.toLowerCase(),
    size: "s"
  })), !noPrefix && _react.default.createElement(_.Flexbox, {
    item: true
  }, _react.default.createElement(_.Typography, {
    type: "secondary"
  }, prefixCode)));
};
var _default = exports.default = CountryCodeLabel;