"use strict";

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

var _fdx = require("@whalecloud/fdx");

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

require("./index.less");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var BottomButton = function BottomButton(props) {
  var onSaveClick = props.onSaveClick,
      onCancelClick = props.onCancelClick,
      onSetting = props.onSetting;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "bottomButton"
  }, onSetting && /*#__PURE__*/_react["default"].createElement(_fdx.Button, {
    type: "primary",
    className: "mr12",
    onClick: function onClick() {
      return onSetting && onSetting();
    }
  }, "setting"), onSaveClick && /*#__PURE__*/_react["default"].createElement(_fdx.Button, {
    type: "primary",
    onClick: function onClick() {
      return onSaveClick && onSaveClick();
    },
    className: "mr12 saveBut"
  }, "Save"), onCancelClick && /*#__PURE__*/_react["default"].createElement(_fdx.Button, {
    onClick: function onClick() {
      return onCancelClick && onCancelClick();
    }
  }, "Cancel"));
};

var _default = BottomButton;
exports["default"] = _default;