@shopgate/engage
Version:
Shopgate's ENGAGE library.
34 lines (32 loc) • 806 B
JavaScript
import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { wrapper } from "./SupplementalContent.styles";
import connect from "./SupplementalContent.connector";
/**
* The SupplementalContent component
* @param {Object} props The component props
* @returns {JSX}
*/
import { jsx as _jsx } from "react/jsx-runtime";
const SupplementalContent = ({
text,
className
}) => {
if (!text) {
return null;
}
/* eslint-disable react/no-danger */
return /*#__PURE__*/_jsx("div", {
className: classNames(wrapper, className),
dangerouslySetInnerHTML: {
__html: text
}
});
/* eslint-enable react/no-danger */
};
SupplementalContent.defaultProps = {
text: null,
className: null
};
export default connect(SupplementalContent);