MCPcopy
hub / github.com/21st-dev/1code / mermaid-block.tsx

File mermaid-block.tsx

src/renderer/components/mermaid-block.tsx:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { memo, useState, useEffect, useRef, useCallback } from "react"
2import { useTheme } from "next-themes"
3import { Copy, Check, Download, AlertTriangle, RotateCcw, Maximize2, X, ZoomIn, ZoomOut, RotateCcw as ResetZoom } from "lucide-react"
4import { TransformWrapper, TransformComponent, useControls } from "react-zoom-pan-pinch"

Callers

nothing calls this directly

Calls 11

cnFunction · 0.90
getMermaidFunction · 0.85
getMermaidConfigFunction · 0.85
cleanupMermaidErrorsFunction · 0.85
hasUnclosedBracketsFunction · 0.85
hasUnclosedBracesFunction · 0.85
hasUnclosedParensFunction · 0.85
hasUnclosedQuotesFunction · 0.85
getMethod · 0.45
renderMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected