(error: string | null)
| 114 | const [error, _setError] = useState<string | null>(null); |
| 115 | |
| 116 | function setError(error: string | null) { |
| 117 | if (error === null) { |
| 118 | _setError(null); |
| 119 | return; |
| 120 | } |
| 121 | |
| 122 | _setError(error); |
| 123 | setTimeout(() => _setError(null), 5000); |
| 124 | } |
| 125 | |
| 126 | function isValidSecret() { |
| 127 | return isValidSecretName(name) && value.length > 0; |
no outgoing calls
no test coverage detected