(apiKey: string, projectName: string)
| 40 | } |
| 41 | |
| 42 | const copyApiKey = (apiKey: string, projectName: string) => { |
| 43 | if (typeof window !== 'undefined') { |
| 44 | navigator.clipboard |
| 45 | .writeText(apiKey) |
| 46 | .then(() => |
| 47 | toast({ |
| 48 | title: 'API Key Copied', |
| 49 | description: `Copied API key for ${projectName}`, |
| 50 | }), |
| 51 | ) |
| 52 | .catch(() => toast({ title: '❌ Manually copy API Key:', description: apiKey })); |
| 53 | } |
| 54 | }; |
| 55 | |
| 56 | const isPro = premStatus === 'pro'; |
| 57 |
no test coverage detected
searching dependent graphs…