CommentPreview.jsx 523 B

1234567891011121314151617181920212223242526272829
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import RevisionBody from '../Page/RevisionBody';
  4. /**
  5. * Wrapper component for Page/RevisionBody
  6. */
  7. const CommentPreview = (props) => {
  8. return (
  9. <div className="page-comment-preview-body">
  10. <RevisionBody
  11. html={props.html}
  12. additionalClassName="comment"
  13. isMathJaxEnabled
  14. renderMathJaxInRealtime
  15. />
  16. </div>
  17. );
  18. };
  19. CommentPreview.propTypes = {
  20. html: PropTypes.string,
  21. };
  22. export default CommentPreview;