UNPKG

use-vibes

Version:

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

30 lines (29 loc) 1.41 kB
import * as React from 'react'; import { ImgGenClasses } from '../../../utils/style-utils'; interface ImageOverlayProps { promptText: string; editedPrompt: string | null; setEditedPrompt: (prompt: string | null) => void; handlePromptEdit: (prompt: string) => void; /** Function to handle deletion confirmation */ handleDeleteConfirm: () => void; handlePrevVersion: () => void; handleNextVersion: () => void; handleRegen: () => void; versionIndex: number; totalVersions: number; /** Custom CSS classes for styling component parts */ classes?: ImgGenClasses; /** Show control buttons (defaults to true) */ showControls?: boolean; /** Progress value for generation (0-100), shows progress bar when < 100 */ progress?: number; /** Show delete button (defaults to true) */ showDelete?: boolean; /** Whether to show a flash effect on the version indicator - used when a new version is added */ versionFlash?: boolean; /** Whether regeneration is currently in progress */ isRegenerating?: boolean; } export declare function ImageOverlay({ promptText, editedPrompt, setEditedPrompt, handlePromptEdit, handleDeleteConfirm, handlePrevVersion, handleNextVersion, handleRegen, versionIndex, totalVersions, classes, showControls, progress, showDelete, versionFlash, isRegenerating, }: ImageOverlayProps): React.JSX.Element; export {};