setLicenseKeyInput(e.target.value)}
+ placeholder={currentLicenseInfo?.licenseKey || '00000000-0000-0000-0000-000000000000'}
+ type="password"
+ disabled={!loginEnabled || savingLicense}
+ />
+ ) : (
+ /* File upload */
+
+
+ {t('admin.settings.premium.file.label', 'License Certificate File')}
+
+
+ {t('admin.settings.premium.file.description', 'Upload your .lic or .cert license file')}
+
+
+ {(props) => (
+ }
+ disabled={!loginEnabled || savingLicense}
+ >
+ {licenseFile
+ ? licenseFile.name
+ : t('admin.settings.premium.file.choose', 'Choose License File')}
+
+ )}
+
+ {licenseFile && (
+
+ {t('admin.settings.premium.file.selected', 'Selected: {{filename}} ({{size}})', {
+ filename: licenseFile.name,
+ size: (licenseFile.size / 1024).toFixed(2) + ' KB',
+ })}
+
+ )}
+
+ )}
+
+
+
+
+