'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');

var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);

var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _createClass2 = require('babel-runtime/helpers/createClass');

var _createClass3 = _interopRequireDefault(_createClass2);

var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');

var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

var _inherits2 = require('babel-runtime/helpers/inherits');

var _inherits3 = _interopRequireDefault(_inherits2);

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _CardWrapper = require('./styles/CardWrapper');

var _CardWrapper2 = _interopRequireDefault(_CardWrapper);

var _CardHeader = require('./CardHeader');

var _CardHeader2 = _interopRequireDefault(_CardHeader);

var _CardSection = require('./CardSection');

var _CardSection2 = _interopRequireDefault(_CardSection);

var _CardGroup = require('./CardGroup');

var _CardGroup2 = _interopRequireDefault(_CardGroup);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

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

var Card = function (_React$Component) {
  (0, _inherits3.default)(Card, _React$Component);

  function Card() {
    (0, _classCallCheck3.default)(this, Card);
    return (0, _possibleConstructorReturn3.default)(this, (Card.__proto__ || (0, _getPrototypeOf2.default)(Card)).apply(this, arguments));
  }

  (0, _createClass3.default)(Card, [{
    key: 'render',
    value: function render() {
      var _props = this.props,
          children = _props.children,
          CardWrapper = _props.CardWrapper;

      return _react2.default.createElement(
        CardWrapper,
        null,
        children
      );
    }
  }]);
  return Card;
}(_react2.default.Component);

Card.propTypes = {
  /**
   * A component which controls the styles for the outline of the Card.
   */
  CardWrapper: _propTypes2.default.func
};
Card.defaultProps = {
  CardWrapper: _CardWrapper2.default
};


Card.Section = _CardSection2.default;
Card.Header = _CardHeader2.default;
Card.Group = _CardGroup2.default;

exports.default = Card;