UNPKG

use-vibes

Version:

Transform any DOM element into an AI-powered micro-app

32 lines (31 loc) 1.27 kB
import * as React from 'react'; export interface ImgGenModalProps { isOpen: boolean; onClose: () => void; currentFile: File | undefined; alt?: string; promptText: string; editedPrompt: string | null; setEditedPrompt: (_editedPrompt: string | null) => void; handlePromptEdit: (_newPrompt: string) => void; handleDeleteConfirm: () => void; handlePrevVersion: () => void; handleNextVersion: () => void; handleRegen: () => void; versionIndex: number; totalVersions: number; progress: number; /** Whether to show a flash effect on the version indicator - used when a new version is added */ versionFlash?: boolean; isRegenerating?: boolean; /** Error if image generation failed */ error?: Error | null; classes?: { root?: string; image?: string; controls?: string; overlay?: string; modal?: string; }; } export declare function ImgGenModal({ isOpen, onClose, currentFile, alt, promptText, editedPrompt, setEditedPrompt, handlePromptEdit, handleDeleteConfirm, handlePrevVersion, handleNextVersion, handleRegen, versionIndex, totalVersions, progress, versionFlash, isRegenerating, error, classes, }: ImgGenModalProps): React.ReactPortal | null;