(text: string)
| 35 | [`message_window`]: 'Message Window', |
| 36 | } |
| 37 | const handleCopy = (text: string) => { |
| 38 | const clipboard = new ClipboardJS('.icon-copy', { |
| 39 | text: () => text |
| 40 | }); |
| 41 | clipboard.on('success', function () { |
| 42 | toast.success('Copied to clipboard') |
| 43 | clipboard.destroy() |
| 44 | }); |
| 45 | clipboard.on('error', function (e) { |
| 46 | console.log(e); |
| 47 | }); |
| 48 | } |
| 49 | |
| 50 | |
| 51 | const typeReverse: Record<string, string> = { |