(gradient: string)
| 158 | const [copied, setCopied] = useState(false) |
| 159 | |
| 160 | const copyGradient = (gradient: string) => { |
| 161 | navigator.clipboard.writeText(gradient) |
| 162 | setCopied(true) |
| 163 | setTimeout(() => setCopied(false), 1000) |
| 164 | toast.success('Gradient copied to clipboard!') |
| 165 | } |
| 166 | |
| 167 | const variants = { |
| 168 | hidden: { opacity: 0, scale: 0.5 }, |