"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.extractViewRelatedLinksAction = void 0;
var _linkExtractors = require("@atlaskit/link-extractors");
var extractViewRelatedLinksAction = exports.extractViewRelatedLinksAction = function extractViewRelatedLinksAction(response) {
  var _response$meta;
  if (!(response !== null && response !== void 0 && (_response$meta = response.meta) !== null && _response$meta !== void 0 && (_response$meta = _response$meta.supportedFeature) !== null && _response$meta !== void 0 && _response$meta.includes('RelatedLinks'))) {
    return;
  }
  var ari = (0, _linkExtractors.extractSmartLinkAri)(response);
  if (!ari) {
    return;
  }
  return {
    ari: ari
  };
};