import { cn } from "../../lib/utils" import { useEffect, useState } from "react" export const CopyClipboard = ({ text, children, }: { text: string children?: React.ReactNode }) => { const [copied, setCopied] = useState(false) useEffect(() => { if (copied) { setTimeout(() => { setCopied(false) }, 2000) } }, [copied]) return ( ) }