+
+ {t("imageGeneration.title")}
+
+
+ {/* Prompt input */}
+
+
+
+
+ {/* Generation button */}
+
+
+
+
+
+
+ {t("imageGeneration.results")}
+
+
+
+ {/* Error message */}
+ {error && (
+
+ {t("common.error")}: {error.message}
+
+ )}
+
+ {/* Loading indicator */}
+ {isGenerating && (
+
+
+
+
+ {t("imageGeneration.generating")}
+
+
+
+ )}
+
+ {/* Results display */}
+ {imageResult && !isGenerating && (
+
+
+

+
+
+ )}
+
+ {/* Placeholder when no results */}
+ {!imageResult && !isGenerating && (
+
+
+
+ {t("imageGeneration.placeholderText")}
+
+
+
+ )}
+
+ {/* Provider selection */}
+
+
+
+
+
+
+
+ {/* Model selection */}
+
+
+
+
+
+
+
+ {/* Aspect ratio selection */}
+
+
+
+
+
+
+
+
+
+
+
+
+ {/* Image count */}
+
+
+
setImageCount(parseInt(e.target.value) || 1)}
+ min="1"
+ max="4"
+ className="w-full p-3 input-box"
+ disabled={true}
+ />
+
+
+ {/* Random seed */}
+
+
+
+ setRandomSeed(e.target.value)}
+ className="flex-grow p-3 mr-2 input-box"
+ disabled={true}
+ />
+
+
+
+