/* index.tsx generated by @compiled/babel-plugin v0.40.0 */
"use strict";

var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
require("./index.compiled.css");
var React = _interopRequireWildcard(require("react"));
var _runtime = require("@compiled/react/runtime");
var _index = require("../../../../index");
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
var hoverStyle = null;
var baseStyle = null;
var selectedStyle = null;
var relatedLinkItemStyles = null;
var RelatedLinkItem = function RelatedLinkItem(_ref) {
  var url = _ref.url,
    testId = _ref.testId,
    isSelected = _ref.isSelected,
    onFocus = _ref.onFocus;
  var subtitle = [{
    name: _index.ElementName.Provider,
    hideIcon: true
  }];
  var ui = {
    hideElevation: true,
    hidePadding: true,
    hideBackground: true,
    theme: _index.SmartLinkTheme.Black,
    clickableContainer: true,
    size: _index.SmartLinkSize.Medium
  };
  return /*#__PURE__*/React.createElement("div", {
    "data-testId": testId,
    onFocus: onFocus,
    role: "presentation",
    className: (0, _runtime.ax)(["_195g10v4 _18zr1ejb", "_irr31dpa _1di6fcek", isSelected && "_bfhk15s3 _16qs1mgz _irr3ufnl _1di6nozp"])
  }, /*#__PURE__*/React.createElement(_index.Card, {
    appearance: "block",
    ui: ui,
    url: url
  }, /*#__PURE__*/React.createElement(_index.TitleBlock, {
    maxLines: 1,
    hideTitleTooltip: true,
    position: _index.SmartLinkPosition.Top,
    subtitle: subtitle,
    anchorTarget: "_blank",
    size: ui.size,
    className: (0, _runtime.ax)(["_zulputpp _11c8wadc _ca0qu2gc _n3tdu2gc"])
  })));
};
var _default = exports.default = RelatedLinkItem;