"use client" import { useState } from "react" import { Copy, Check } from "lucide-react" export function CopyButton({ text, className }: { text: string; className?: string }) { const [copied, setCopied] = useState(false) async function handleCopy() { await navigator.clipboard.writeText(text) setCopied(true) setTimeout(() => setCopied(false), 2000) } return ( ) }