import { useState } from 'react' import { Copy, Check } from 'lucide-react' import { cn } from '@/lib/utils' interface CopyButtonProps { text: string className?: string label?: string } // Small icon button that copies `text` to the clipboard and briefly shows a // check. Shared by markdown code blocks and Playground replies. export function CopyButton({ text, className, label = 'Copy' }: CopyButtonProps) { const [copied, setCopied] = useState(false) return ( ) }