2022-09-08 11:53:46 +02:00

10 lines
266 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
// eslint-disable-next-line react/no-danger
export const Html = ({ contents }) => <div dangerouslySetInnerHTML={{ __html: contents }} />;
Html.propTypes = {
contents: PropTypes.string.isRequired,
};