import { useState } from 'react'; import { Clipboard, Check } from 'lucide-react'; export const CodeBlock = ({ code }) => { const [copied, setCopied] = useState(false); const handleCopy = async () => { try { await navigator.clipboard.writeText(code); setCopied(true); setTimeout(() => setCopied(false), 2000); } catch (err) { console.error('Failed to copy text', err); } }; return (
{/* Copy Utility Button */} {/* Technical monospaced text output */}
        {code}
      
); };