"use strict";

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

var getPaletteColor = function getPaletteColor(colorNameKey) {
  return function (_ref) {
    var theme = _ref.theme;
    return colorNameKey ? theme.colorPalette[colorNameKey] : '';
  };
};

exports.getPaletteColor = getPaletteColor;

var getOutlineColor = function getOutlineColor(theme) {
  return getPaletteColor('greyscale-light')({
    theme: theme
  });
};

exports.getOutlineColor = getOutlineColor;

var getForegroundColor = function getForegroundColor(_ref2) {
  var theme = _ref2.theme,
      colorName = _ref2.colorName;
  return getPaletteColor(colorName || theme.defaultTextColor || 'greyscale-black')({
    theme: theme
  });
};

exports.getForegroundColor = getForegroundColor;