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

var Paragraph = function Paragraph(paragraph) {
  return (
    /* eslint-disable-next-line react/no-danger */
    _react2.default.createElement('p', { className: paragraph.className, dangerouslySetInnerHTML: { __html: paragraph.text || paragraph.children } })
  );
};

Paragraph.propTypes = process.env.NODE_ENV !== "production" ? {
  /** The text displayed. */
  text: _propTypes2.default.string,
  /** A custom class. */
  className: _propTypes2.default.string
} : {};

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