function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

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; }

import React from 'react';
import { Header } from '../Header';
import { Body } from '../Body';

var Detail = function Detail(_ref) {
  var icon = _ref.icon,
      title = _ref.title,
      footer = _ref.footer,
      children = _ref.children,
      rest = _objectWithoutPropertiesLoose(_ref, ["icon", "title", "footer", "children"]);

  return /*#__PURE__*/React.createElement("div", _extends({
    className: "detail"
  }, rest), /*#__PURE__*/React.createElement(Header, {
    title: title,
    icon: icon
  }), /*#__PURE__*/React.createElement(Body, null, children), footer && /*#__PURE__*/React.createElement("div", {
    className: "footer"
  }, footer));
};

Detail.displayName = 'Detail';
var StatDoc;

if (process.env.NODE_ENV !== 'production') {
  // eslint-disable-next-line global-require
  StatDoc = require('./doc').doc(Detail);
}

var DetailWrapper = StatDoc || Detail;
export { DetailWrapper as Detail };