"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getFillColor = void 0;

var _branding = require("../../../mixins/branding");

var _icon = require("../icon.css-rules");

var getFillColor = function getFillColor(_ref) {
  var theme = _ref.theme,
      disabled = _ref.disabled,
      useCurrentColor = _ref.useCurrentColor;

  if (useCurrentColor) {
    return 'currentColor';
  }

  return disabled ? (0, _icon.getDisabledFillColor)({
    theme: theme
  }) : (0, _branding.getPaletteColor)('brand-secondary-fg')({
    theme: theme
  });
};

exports.getFillColor = getFillColor;