'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var _tslib = require('../../_virtual/_tslib.js');
var React = require('react');
var styles = require('./styles.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

function Link(_a) {
    var { label, icon, type = 'standalone', variant = 'default', size = 'medium', iconModifiers = 'trailing', bold } = _a, props = _tslib.__rest(_a, ["label", "icon", "type", "variant", "size", "iconModifiers", "bold"]);
    return (React__default['default'].createElement(styles.LinkWrapper, Object.assign({}, props, { type: type, variant: variant, size: size, "data-testid": props['data-testid'], "data-trackid": props['data-trackid'], "aria-label": props['aria-label'], role: "link", bold: bold }),
        React__default['default'].createElement(styles.LinkContent, { iconModifiers: iconModifiers, variant: variant },
            React__default['default'].createElement("span", null, label),
            icon && icon)));
}

exports.Link = Link;
