Tom Coleman 383d4ba861 Revert "Undo accidental push of tom/sb-557-typescript-2"
This reverts commit 1cfc7203af2dd81d9484d1a569c9fb4e31396ea0.
2022-10-12 13:20:38 +11:00

11 lines
344 B
JavaScript

/* eslint-disable react/react-in-jsx-scope */
// eslint-disable-next-line import/no-extraneous-dependencies
import PropTypes from 'prop-types';
// eslint-disable-next-line react/no-danger
export const Html = ({ content }) => <div dangerouslySetInnerHTML={{ __html: content }} />;
Html.propTypes = {
content: PropTypes.string.isRequired,
};