import { extractorPriorityMap } from '../icon/priority';
export const extractTitleTextColor = jsonLd => {
  const type = jsonLd['@type'];
  if (Array.isArray(type)) {
    const highestPriorityType = type.sort((a, b) => extractorPriorityMap[b] - extractorPriorityMap[a])[0];
    switch (highestPriorityType) {
      case 'atlassian:UndefinedLink':
        return "var(--ds-text-danger, #AE2E24)";
      default:
        return undefined;
    }
  }
};