toggleClip(clipIndex)}>
{expandedClips.has(clipIndex) ? (
) : (
)}
{
e.stopPropagation();
updateClip(clipIndex, { name: e.target.value });
}}
onClick={(e) => e.stopPropagation()}
disabled={readonly}
/>
{clip.frames.length} frames
{component && clip.frames.length > 0 && (
)}
{component && !readonly && (
)}
{!readonly && (
)}
{expandedClips.has(clipIndex) && (
updateClip(clipIndex, { speed: val })}
disabled={readonly}
/>
handleFramesDrop(clipIndex, e)}
onDragOver={handleFramesDragOver}
>
Frames
{!readonly && (
)}
{clip.frames.length === 0 ? (
Drop images here or click + to add
) : (
{clip.frames.map((frame, frameIndex) => (
))}
)}