"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.ButtonLink = void 0;

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

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

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

var _Button = require("../Button");

var ButtonA = _Button.Button.withComponent('a', {
  target: "e6dovmb0",
  label: "ButtonA"
});

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

exports.ButtonLink = ButtonLink;
var _default = ButtonLink;
exports["default"] = _default;