'use strict';

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

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 _class, _temp;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _reactImmutableProptypes = require('react-immutable-proptypes');

var _reactImmutableProptypes2 = _interopRequireDefault(_reactImmutableProptypes);

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

var _propTypes2 = _interopRequireDefault(_propTypes);

var _QuizInfo = require('../../../../../common/components/resources/quiz/info/QuizInfo');

var _QuizInfo2 = _interopRequireDefault(_QuizInfo);

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

var TakeHeader = (_temp = _class = function (_Component) {
  (0, _inherits3.default)(TakeHeader, _Component);

  function TakeHeader() {
    (0, _classCallCheck3.default)(this, TakeHeader);
    return (0, _possibleConstructorReturn3.default)(this, (TakeHeader.__proto__ || Object.getPrototypeOf(TakeHeader)).apply(this, arguments));
  }

  (0, _createClass3.default)(TakeHeader, [{
    key: 'renderInfo',
    value: function renderInfo() {
      var quiz = this.props.quiz;
      return _react2.default.createElement(_QuizInfo2.default, { quiz: quiz });
    }
  }, {
    key: 'render',
    value: function render() {
      return _react2.default.createElement(
        'div',
        null,
        this.renderInfo()
      );
    }
  }]);
  TakeHeader.displayName = 'TakeHeader'
  ;
  return TakeHeader;
}(_react.Component), _class.propTypes = {
  quizSessionId: _propTypes2.default.string.isRequired,
  quiz: _reactImmutableProptypes2.default.record
}, _temp);
exports.default = TakeHeader;