"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
require("./style/index.less");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var VmButton = function VmButton(_ref) {
  var name = _ref.name,
    _ref$active = _ref.active,
    active = _ref$active === void 0 ? false : _ref$active,
    _ref$style = _ref.style,
    style = _ref$style === void 0 ? {} : _ref$style,
    _onClick = _ref.onClick;
  return /*#__PURE__*/_react["default"].createElement("div", {
    onClick: function onClick() {
      return _onClick && _onClick();
    },
    className: active ? 'vm-button--active' : 'vm-button',
    style: style
  }, name);
};
var _default = exports["default"] = VmButton;
//# sourceMappingURL=index.js.map
