import React from 'react'; import DOMPurify from 'dompurify'; import type { MessageBlock } from '@/store/commStore'; interface HtmlBlockProps { block: MessageBlock; } const HtmlBlock: React.FC = ({ block }) => { const rawHtml: string = block.block_data.html || ''; if (!rawHtml) { return null; } const sanitized = DOMPurify.sanitize(rawHtml); return (
); }; export default HtmlBlock;