import React from 'react'; import { TransformWrapper, TransformComponent } from 'react-zoom-pan-pinch'; import Mermaid from '@theme/Mermaid'; import styles from './styles.module.css'; interface ZoomableMermaidProps { value: string; title?: string; } export default function ZoomableMermaid({ value, title }: ZoomableMermaidProps): JSX.Element { return (
{title &&

{title}

}
💡 Tip: Use mouse wheel to zoom, click and drag to pan, or use the controls below
{({ zoomIn, zoomOut, resetTransform }) => ( <>
)}
); }