import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["children", "className", "centered", "noPadding"];
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';

var ModuleBody = function ModuleBody(_ref) {
  var children = _ref.children,
      className = _ref.className,
      centered = _ref.centered,
      noPadding = _ref.noPadding,
      other = _objectWithoutProperties(_ref, _excluded);

  var wrapperClasses = classNames('wfp--module__content', className, {
    'wfp--module__content--centered': centered,
    'wfp--module__content--no-padding': noPadding
  });
  return /*#__PURE__*/React.createElement("div", _extends({
    className: wrapperClasses
  }, other), children);
};

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

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

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

  /**
   * The CSS class name for the `ModuleBody`.
   */
  className: PropTypes.string
};
ModuleBody.defaultProps = {};
export default ModuleBody;