"use strict";

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

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

var getLinkColor = function getLinkColor(_ref) {
  var theme = _ref.theme,
      colorName = _ref.colorName;
  return colorName ? (0, _branding.getPaletteColor)(colorName)({
    theme: theme
  }) : 'inherit';
};

exports.getLinkColor = getLinkColor;

var getLinkFontSize = function getLinkFontSize(_ref2) {
  var theme = _ref2.theme,
      fontSize = _ref2.fontSize;
  return fontSize != null && theme.typescale[fontSize] != null ? theme.typescale[fontSize] : 'inherit';
};

exports.getLinkFontSize = getLinkFontSize;