'use client'; import React from 'react'; import { AlertTriangle } from 'lucide-react'; interface MermaidErrorPanelProps { /** Human-readable error message from the Mermaid parser. */ message: string; } /** * Inline error panel shown when a Mermaid diagram fails to parse. * * Replaces the previous `innerHTML`-injected markup — keeps rendering in * React, uses semantic `destructive` tokens, and stays accessible * (`role="alert"`). */ export const MermaidErrorPanel: React.FC = ({ message }) => { return (
); };