"use strict";

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

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

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

var _button = _interopRequireDefault(require("../../../../button"));

var _getLocale = require("../../../../../utils/getLocale");

var _utils = require("../../../utils");

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

var Operations = function Operations(props) {
  var disabled = props.disabled,
      onCancel = props.onCancel,
      onClear = props.onClear,
      onOk = props.onOk;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(_utils.PickerRangesClass, "__operations"))
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(_utils.PickerRangesClass, "__operations-left"))
  }, /*#__PURE__*/_react["default"].createElement(_button["default"].Text, {
    onClick: onClear,
    text: (0, _getLocale.getLocale)('Mod_Empty')
  })), /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])("".concat(_utils.PickerRangesClass, "__operations-right"))
  }, /*#__PURE__*/_react["default"].createElement(_button["default"], {
    onClick: onCancel,
    size: "small"
  }, (0, _getLocale.getLocale)('Mod_Cancel')), /*#__PURE__*/_react["default"].createElement(_button["default"], {
    disable: disabled,
    onClick: onOk,
    size: "small",
    type: "primary"
  }, (0, _getLocale.getLocale)('Mod_Determiness'))));
};

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