"use strict";

exports.__esModule = true;
exports.getMasterCardBackground = exports["default"] = void 0;
var _colors = require("./colors");
var getMasterCardBackground = exports.getMasterCardBackground = function getMasterCardBackground(background, flavour) {
  return background || (0, _colors.getMasterCardColor)(flavour);
};
var getPillBackground = function getPillBackground(_ref) {
  var background = _ref.background,
    _ref$flavour = _ref.flavour,
    flavour = _ref$flavour === void 0 ? "neutral" : _ref$flavour,
    hollow = _ref.hollow,
    semi = _ref.semi;
  if (background) return background;
  if (hollow) return semi ? (0, _colors.getPillColor)("hollow", flavour) : "transparent";
  return (0, _colors.getPillColor)("background", flavour);
};
var _default = exports["default"] = getPillBackground;