'use client';

/** Mermaid block — thin chat wrapper around `Mermaid`. */

import { LazyMermaid } from '../../../../dev/Mermaid/lazy';
import type { MermaidBlock } from '../../../types/block';
import type { BlockRendererProps } from './types';

export default function MermaidBlockRenderer({ block }: BlockRendererProps<MermaidBlock>) {
  return <LazyMermaid chart={block.chart} />;
}
