+ {/* Activate heading (shown when not active) */}
+ {!hasActive && (
+
+
+
+
+
+
+ {labels.activateLicenseHeading}
+
+
+ {labels.activateLicenseSubheading}
+
+
+
+ )}
+
+ {/* License key label */}
+
+ {labels.licenseKeyLabel}
+
+
+ {/* License key input */}
+
+ onLicenseKeyChange(e.target.value)}
+ disabled={loading || hasActive}
+ className={cn(
+ "pr-10",
+ error && "border-destructive focus-visible:border-destructive focus-visible:ring-destructive/20"
+ )}
+ />
+
+
+
+ {/* Error message */}
+ {error && (
+
{error}
+ )}
+
+ {/* Masked key info */}
+ {!error && hasActive && (
+
+
+ {labels.maskedKeyInfo}
+
+ )}
+
+ {/* Action buttons */}
+
+ {hasActive ? (
+ <>
+
+
+ >
+ ) : (
+
+ )}
+
+
+