"use strict";

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

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

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

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

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

var _classnames = _interopRequireDefault(require("classnames"));

var _components = require("@alicloudfe/components");

var BDesignContainer = function BDesignContainer(props) {
  var className = props.className,
      to = props.to,
      theme = props.theme,
      target = props.target,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "to", "theme", "target"]);
  return /*#__PURE__*/_react.default.createElement(_components.Button, (0, _extends2.default)({
    className: (0, _classnames.default)(className, {
      'next-bedesign-link': true,
      'next-bedesign-link-dark': theme === 'dark'
    }),
    href: to,
    target: target,
    component: "a"
  }, rest));
};

var _default = BDesignContainer;
exports.default = _default;