"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

var _propTypes = _interopRequireDefault(require("prop-types"));

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

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

var _excluded = ["children", "className", "centered", "noPadding"];

var ModuleBody = function ModuleBody(_ref) {
  var children = _ref.children,
      className = _ref.className,
      centered = _ref.centered,
      noPadding = _ref.noPadding,
      other = (0, _objectWithoutProperties2.default)(_ref, _excluded);
  var wrapperClasses = (0, _classnames.default)('wfp--module__content', className, {
    'wfp--module__content--centered': centered,
    'wfp--module__content--no-padding': noPadding
  });
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
    className: wrapperClasses
  }, other), children);
};

ModuleBody.propTypes = {
  /**
   * Specify the content of the `ModuleBody`
   */
  children: _propTypes.default.node,

  /**
   * Specify wheater the content should be centered.
   */
  centered: _propTypes.default.bool,

  /**
   * Specify wheater the body should have no padding.
   */
  noPadding: _propTypes.default.bool,

  /**
   * The CSS class name for the `ModuleBody`.
   */
  className: _propTypes.default.string
};
ModuleBody.defaultProps = {};
var _default = ModuleBody;
exports.default = _default;