import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from "react";
import cls from "classnames";
import { Button } from "@alicloudfe/components";

var BDesignContainer = function BDesignContainer(props) {
  var className = props.className,
      to = props.to,
      theme = props.theme,
      target = props.target,
      rest = _objectWithoutProperties(props, ["className", "to", "theme", "target"]);

  return /*#__PURE__*/React.createElement(Button, _extends({
    className: cls(className, {
      'next-bedesign-link': true,
      'next-bedesign-link-dark': theme === 'dark'
    }),
    href: to,
    target: target,
    component: "a"
  }, rest));
};

export default BDesignContainer;