()
| 105 | }; |
| 106 | |
| 107 | const copyConfig = () => { |
| 108 | navigator.clipboard.writeText(JSON.stringify(exactConfig, null, 2)) |
| 109 | .then(() => { |
| 110 | toast({ |
| 111 | title: "Configuration Copied", |
| 112 | description: "Configuration copied to clipboard", |
| 113 | }); |
| 114 | }) |
| 115 | .catch((error) => { |
| 116 | console.error('Error copying config:', error); |
| 117 | toast({ |
| 118 | title: "Error", |
| 119 | description: "Failed to copy configuration", |
| 120 | variant: "destructive", |
| 121 | }); |
| 122 | }); |
| 123 | }; |
| 124 | |
| 125 | return ( |
| 126 | <div className="space-y-6"> |