import React from 'react'; import { Loader2, ImageIcon, RefreshCw } from 'lucide-react'; import { resolveFileUrl } from '../../resolveFileUrl'; // ----------------------------------------------------------------------------- // Component // ----------------------------------------------------------------------------- /** * Preview panel for the current scene, styled like Imagine's lightbox. * Shows the scene image with narration overlay and generation status. */ export function StudioPreviewPanel({ imageUrl, isGenerating = false, narration, prompt, onRegenerateImage, className = '', }) { const hasImage = Boolean(imageUrl); return (
Generating image...
{prompt && ({prompt}
)} >) : (<>No image for this scene
{onRegenerateImage && ()} >)}{narration}