var _excluded = ["background", "icon", "text"];
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
import React, { forwardRef } from "react";
import Pill from "./index";
var MasterCardPill = /*#__PURE__*/forwardRef(function (_ref, ref) {
  var background = _ref.background,
    icon = _ref.icon,
    text = _ref.text,
    rest = _objectWithoutPropertiesLoose(_ref, _excluded);
  return /*#__PURE__*/React.createElement(Pill, _extends({
    background: background,
    borderColor: background,
    "data-testid": "mastercard-pill",
    icon: icon,
    ref: ref
  }, rest), !icon && (text || "-"));
});
export default MasterCardPill;