{!videoUrl && (
<>
{
this.editor.updateShape({
id: shape.id,
type: shape.type,
props: { ...shape.props, duration: parseInt(e.target.value) || 3 }
})
}}
disabled={isGenerating}
onPointerDown={(e) => e.stopPropagation()}
style={{
width: '100%',
padding: '8px',
backgroundColor: '#fff',
color: '#333',
border: '1px solid #ddd',
borderRadius: '6px',
fontSize: '13px',
boxSizing: 'border-box'
}}
/>
{error && (
Error: {error}
)}
Note: Video generation uses RunPod GPU
Cost: ~$0.50 per video | Processing: 30-90 seconds
>
)}
{videoUrl && (
<>