import React, { useState } from 'react'; import copy from 'copy-to-clipboard'; import { Button } from 'antd'; function CopyButton({ content, variant = 'text', className = 'capitalize mt-2 font-medium text-neutral-400', btnText = 'copy', size = 'small', }) { const [copied, setCopied] = useState(false); const copyHandler = () => { setCopied(true); copy(content); setTimeout(() => { setCopied(false); }, 1000); }; return ( ); } export default CopyButton;