{/* Preview area */}
{nodeData.outputVideo ? (
<>
{/* Loading overlay for generation */}
{nodeData.status === "loading" && (
)}
{/* Error overlay when generation failed */}
{nodeData.status === "error" && (
Generation failed
See toast for details
)}
{/* Loading overlay for carousel navigation */}
{isLoadingCarouselVideo && (
)}
{/* Carousel controls - only show if there are multiple videos */}
{hasCarouselVideos && (
{(nodeData.selectedVideoHistoryIndex || 0) + 1} / {(nodeData.videoHistory || []).length}
)}
>
) : (
{nodeData.status === "loading" ? (
) : nodeData.status === "error" ? (
{nodeData.error || "Failed"}
) : (
Run to generate
)}
)}
{/* Model-specific parameters */}
{nodeData.selectedModel?.modelId && (
)}