"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ExternalReferenceLink = void 0;

var _react = _interopRequireDefault(require("react"));

var _styledComponents = _interopRequireDefault(require("styled-components"));

var _tertiaryButton = require("../core/actions/tertiary-button");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var Link = (0, _styledComponents["default"])(_tertiaryButton.TertiaryButton).withConfig({
  displayName: "Link",
  componentId: "sc-1309iwa-0"
})(["display:inline-block;text-transform:capitalize;"]);

var ExternalReferenceLink = function ExternalReferenceLink(_ref) {
  var src = _ref.src,
      type = _ref.type;
  return /*#__PURE__*/_react["default"].createElement(Link, {
    href: src,
    spacing: "mr3"
  }, type);
};

exports.ExternalReferenceLink = ExternalReferenceLink;