import DOMPurify from 'dompurify'; import { isEmpty } from 'ramda'; import useSettings from '../hooks/useSettings'; const Banner = () => { const { banner, acceptAll, rejectAll, setModal } = useSettings(); // Prevent the injection of unwanted HTML tags in the banner description const allowedTags = [ 'b', 'i', 'em', 'strong', 'p', 'ul', 'li', 'ol', 'span', 'h2', 'h3', 'h4', 'h5', 'h6', 'a', 'div', ]; const allowedAttributes = ['href', 'target']; return (