(text: string, field: string)
| 64 | const [copied, setCopied] = useState<string | null>(null) |
| 65 | |
| 66 | const copyToClipboard = (text: string, field: string) => { |
| 67 | navigator.clipboard.writeText(text) |
| 68 | setCopied(field) |
| 69 | setTimeout(() => setCopied(null), 2000) |
| 70 | } |
| 71 | |
| 72 | return ( |
| 73 | <Card className="w-full max-w-md mx-auto"> |