(text)
| 19 | }, []) |
| 20 | |
| 21 | const copyText = (text) => { |
| 22 | toast('Copied to clipboard!', { |
| 23 | position: "top-right", |
| 24 | autoClose: 5000, |
| 25 | hideProgressBar: false, |
| 26 | closeOnClick: true, |
| 27 | pauseOnHover: true, |
| 28 | draggable: true, |
| 29 | progress: undefined, |
| 30 | theme: "dark", |
| 31 | }); |
| 32 | navigator.clipboard.writeText(text) |
| 33 | } |
| 34 | |
| 35 | |
| 36 |