"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = exports.Link = void 0;

var _core = require("@emotion/core");

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));

var React = _interopRequireWildcard(require("react"));

var _Link = _interopRequireDefault(require("./Link.styles"));

var OriginLink = (0, _styledBase["default"])("a", {
  target: "elgncxv0",
  label: "OriginLink"
})(function (_ref) {
  var type = _ref.type,
      size = _ref.size;
  return type && size && _Link["default"].font[type][size];
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xpbmsvTGluay50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBYWtDIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0xpbmsvTGluay50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IFByb3BzT2YgfSBmcm9tICdAZW1vdGlvbi9zdHlsZWQtYmFzZS90eXBlcy9oZWxwZXInXG5cbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHN0eWxlcyBmcm9tICcuL0xpbmsuc3R5bGVzJ1xuXG5leHBvcnQgaW50ZXJmYWNlIFByb3BzIHtcbiAgdHlwZT86IGtleW9mIHR5cGVvZiBzdHlsZXNbJ2ZvbnQnXVxuICBzaXplPzogJ3MnIHwgJ20nIHwgJ2wnXG4gIGlzQWN0aXZlPzogYm9vbGVhblxuICBleHRlcm5hbD86IGJvb2xlYW5cbn1cblxuY29uc3QgT3JpZ2luTGluayA9IHN0eWxlZC5hPFByb3BzPmBcbiAgJHsoeyB0eXBlLCBzaXplIH0pID0+IHR5cGUgJiYgc2l6ZSAmJiBzdHlsZXMuZm9udFt0eXBlXVtzaXplXX1cbmBcblxuY29uc3QgTGluazogUmVhY3QuRkM8UHJvcHNPZjx0eXBlb2YgT3JpZ2luTGluaz4gJiBQcm9wcz4gPSBwcm9wcyA9PiAoXG4gIDxPcmlnaW5MaW5rIHRhcmdldD17cHJvcHMuZXh0ZXJuYWwgPyAnX2JsYW5rJyA6IHVuZGVmaW5lZH0gcmVsPVwibm9vcGVyXCIgey4uLnByb3BzfSAvPlxuKVxuXG5MaW5rLmRlZmF1bHRQcm9wcyA9IHtcbiAgdHlwZTogJ2xpc3QnLFxuICBzaXplOiAncycsXG59XG5cbmV4cG9ydCB7IExpbmsgfVxuZXhwb3J0IGRlZmF1bHQgTGlua1xuIl19 */");

var Link = function Link(props) {
  return (0, _core.jsx)(OriginLink, (0, _extends2["default"])({
    target: props.external ? '_blank' : undefined,
    rel: "nooper"
  }, props));
};

exports.Link = Link;
Link.defaultProps = {
  type: 'list',
  size: 's'
};
var _default = Link;
exports["default"] = _default;