"use strict";

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

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

var _Box = _interopRequireDefault(require("../layout/Box"));

var _Text = _interopRequireDefault(require("../text/Text"));

var _Dialog = require("./Dialog.propTypes");

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

function Body(props) {
  var defaultCustomId = "body";
  var children = props.children,
      customClassName = props.customClassName,
      elllipsis = props.elllipsis;
  return /*#__PURE__*/_react["default"].createElement(_Box["default"], {
    dataId: defaultCustomId,
    className: customClassName,
    flexible: true,
    basis: true
  }, typeof children == 'string' ? /*#__PURE__*/_react["default"].createElement(_Text["default"], {
    content: children,
    textEllipsis: elllipsis
  }) : children);
}

Body.propTypes = _Dialog.bodyPropTypes;