"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.extractTitleTextColor = void 0;
var _priority = require("../icon/priority");
var extractTitleTextColor = exports.extractTitleTextColor = function extractTitleTextColor(jsonLd) {
  var type = jsonLd['@type'];
  if (Array.isArray(type)) {
    var highestPriorityType = type.sort(function (a, b) {
      return _priority.extractorPriorityMap[b] - _priority.extractorPriorityMap[a];
    })[0];
    switch (highestPriorityType) {
      case 'atlassian:UndefinedLink':
        return "var(--ds-text-danger, #AE2E24)";
      default:
        return undefined;
    }
  }
};