text: 'use strict';
  
  Object.defineProperty(exports, '__esModule', { value: true });
  
  var _extends = require('./extends-5150c1f4.js');
  var _styled = require('styled-components');
  var React = require('react');
  var index = require('./index-37353731.js');
  var ButtonBase = require('./ButtonBase.js');
  var Theme = require('./Theme.js');
  var constants = require('./constants.js');
  require('./_commonjsHelpers-1b94f6bc.js');
  require('./FocusVisible.js');
  require('./defineProperty-fdbd3c46.js');
  require('./environment.js');
  require('./miscellaneous.js');
  require('./keycodes.js');
  require('./text-styles.js');
  require('./font.js');
  require('./css.js');
  require('./theme-dark.js');
  require('./theme-light.js');
  require('./color.js');
  
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
  
  var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled);
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
  
  var _StyledButtonBase = _styled__default['default'](ButtonBase['default']).withConfig({
    displayName: "Link___StyledButtonBase",
    componentId: "sc-57j27s-0"
  })(["color:", ";text-decoration:", ";font-size:inherit;"], p => p._css, p => p._css2);
  
  function Link({
    onClick,
    href,
    external,
    ...props
  }) {
    const theme = Theme.useTheme(); // `external` defaults to `true` if `href` is present, `false` otherwise.
  
    if (external === undefined) {
      external = Boolean(href);
    }
  
    return /*#__PURE__*/React__default['default'].createElement(_StyledButtonBase, _extends._extends({
      href: href,
      onClick: onClick,
      external: external,
      focusRingSpacing: [6, 2],
      focusRingRadius: constants.RADIUS
    }, props, {
      _css: theme.link,
      _css2: external ? 'underline' : 'none'
    }));
  }
  
  Link.propTypes = { ...ButtonBase['default'].propTypes,
    href: index.propTypes.string,
    onClick: index.propTypes.func,
    external: index.propTypes.bool
  };
  
  exports.default = Link;
  //# sourceMappingURL=Link.js.map
  