"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.SecondaryDeleteButton = exports.PrimaryDeleteButton = exports.TextButton = exports.SuccessButton = exports.CancelButton = exports.SecondaryButton = exports.PrimaryButton = undefined;

var _react = require("react");

var _react2 = _interopRequireDefault(_react);

var _Button = require("./Button");

var _Button2 = _interopRequireDefault(_Button);

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

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }

var PrimaryButton = exports.PrimaryButton = function PrimaryButton(_ref) {
  var children = _ref.children,
      rest = _objectWithoutProperties(_ref, ["children"]);

  return _react2["default"].createElement(_Button2["default"], rest, children);
};

var SecondaryButton = exports.SecondaryButton = function SecondaryButton(_ref2) {
  var children = _ref2.children,
      rest = _objectWithoutProperties(_ref2, ["children"]);

  return _react2["default"].createElement(_Button2["default"], {
    variant: "SECONDARY"
  }, children);
};

var CancelButton = exports.CancelButton = function CancelButton(_ref3) {
  var children = _ref3.children,
      rest = _objectWithoutProperties(_ref3, ["children"]);

  return _react2["default"].createElement(_Button2["default"], {
    variant: "SECONDARY",
    tone: "NEUTRAL"
  }, children);
};

var SuccessButton = exports.SuccessButton = function SuccessButton(_ref4) {
  var children = _ref4.children,
      rest = _objectWithoutProperties(_ref4, ["children"]);

  return _react2["default"].createElement(_Button2["default"], {
    tone: "SUCCESS"
  }, children);
};

var TextButton = exports.TextButton = function TextButton(_ref5) {
  var children = _ref5.children,
      rest = _objectWithoutProperties(_ref5, ["children"]);

  return _react2["default"].createElement(_Button2["default"], {
    variant: "GHOST"
  }, children);
};

var PrimaryDeleteButton = exports.PrimaryDeleteButton = function PrimaryDeleteButton(_ref6) {
  var children = _ref6.children,
      rest = _objectWithoutProperties(_ref6, ["children"]);

  return _react2["default"].createElement(_Button2["default"], {
    variant: "PRIMARY",
    tone: "DANGER"
  }, children);
};

var SecondaryDeleteButton = exports.SecondaryDeleteButton = function SecondaryDeleteButton(_ref7) {
  var children = _ref7.children,
      rest = _objectWithoutProperties(_ref7, ["children"]);

  return _react2["default"].createElement(_Button2["default"], {
    variant: "SECONDARY",
    tone: "DANGER"
  }, children);
};