Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

574 B
Raw Blame
import { memo } from 'react';

import { InlineHtmlPreview } from '@/components/HtmlPreview';

interface HTMLRendererProps {
  animated?: boolean;
  height?: string;
  htmlContent: string;
  width?: string;
}

const HTMLRenderer = memo<HTMLRendererProps>(
  ({ animated, htmlContent, width = '100%', height = '100%' }) => {
    return (
      <InlineHtmlPreview animated={animated} content={htmlContent} height={height} width={width} />
    );
  },
);

/**  Superseded by Canvas (`lobe-canvas`); kept so existing conversations keep rendering. */
export default HTMLRenderer;