import { extractSmartLinkAri } from '@atlaskit/link-extractors';
export const extractViewRelatedLinksAction = response => {
  var _response$meta, _response$meta$suppor;
  if (!(response !== null && response !== void 0 && (_response$meta = response.meta) !== null && _response$meta !== void 0 && (_response$meta$suppor = _response$meta.supportedFeature) !== null && _response$meta$suppor !== void 0 && _response$meta$suppor.includes('RelatedLinks'))) {
    return;
  }
  const ari = extractSmartLinkAri(response);
  if (!ari) {
    return;
  }
  return {
    ari
  };
};