'use strict';

exports.__esModule = true;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

var _propTypes2 = _interopRequireDefault(_propTypes);

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

/**
 * FormInfo is supplemental, organizational component used to help divide form
 **/

var FormInfo = function FormInfo(props) {
  var title = props.title,
      description = props.description;


  return _react2.default.createElement(
    'div',
    { className: 'section__info' },
    _react2.default.createElement(
      'h4',
      { className: 'section__title' },
      title
    ),
    description && _react2.default.createElement(
      'p',
      { className: 'section__description' },
      description
    )
  );
};

FormInfo.defaultProps = {
  title: '',
  description: ''
};

FormInfo.displayName = 'FormInfo';

exports.default = FormInfo;
module.exports = exports['default'];