var _jsxFileName = 'src/modal/ModalContent.jsx',
    _this = this;

/**
 * ModalContent.jsx
 *
 * @Author: jruif
 * @Date: 2017/7/7 下午10:02
 */

import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { hasChildren } from '../util/isType';
/**
 * @ignore
 * */
var ModalContent = function ModalContent(props) {
  var _props$prefixCls = props.prefixCls,
      prefixCls = _props$prefixCls === undefined ? 'ne-modal-content' : _props$prefixCls,
      className = props.className,
      children = props.children;

  var classes = classNames(prefixCls, className);
  var content = hasChildren(children) ? children : null;
  return React.createElement(
    'div',
    { className: classes, __source: {
        fileName: _jsxFileName,
        lineNumber: 19
      },
      __self: _this
    },
    content
  );
};

ModalContent.propTypes = {
  content: PropTypes.string,
  children: PropTypes.node,
  className: PropTypes.string
};

ModalContent.displayName = 'NeatUI.ModalContent';

export default ModalContent;