import { Check, Copy } from "lucide-react" import { Button } from "@repo/ui" import { useState } from "react" interface CopyButtonProps { onCopy: () => void | Promise className?: string } export function CopyButton({ onCopy, className }: CopyButtonProps) { const [isCopied, setIsCopied] = useState(false) const handleCopy = async () => { await onCopy() setIsCopied(true) setTimeout(() => setIsCopied(false), 2000) } return ( ) }