"use strict";

exports.__esModule = true;
exports["default"] = void 0;
var _theme = require("../../../theme");
var _default = exports["default"] = function _default(_ref) {
  var theme = _ref.theme,
    background = _ref.background,
    backgroundOpacity = _ref.backgroundOpacity;
  if (!background) return "";
  var value = backgroundOpacity ? (0, _theme.getRgbColor)(background, backgroundOpacity)({
    theme: theme
  }) : (0, _theme.getColor)(background)({
    theme: theme
  });
  return value && "background-color: " + value + ";";
};