{/* Private Key Section */}
{t("credentials.sshPrivateKey")}
{/* File Upload */} ( {t("hosts.uploadFile")}
{ const file = e.target.files?.[0]; if (file) { field.onChange(file); try { const fileContent = await file.text(); debouncedKeyDetection(fileContent, form.watch("keyPassword")); } catch (error) { console.error('Failed to read uploaded file:', error); } } }} className="absolute inset-0 w-full h-full opacity-0 cursor-pointer" />
)} /> {/* Text Input */} ( {t("hosts.pasteKey")}