import React from 'react' function ProcessingOverlay({ stems, progress }) { // Include mixing step in the progress display const allSteps = [...stems, '_mix'] const doneCount = Object.values(progress).filter(s => s === 'done').length const totalSteps = allSteps.length // Check if currently processing any stem const currentlyProcessing = Object.entries(progress).find(([_, status]) => status === 'processing')?.[0] return (
{currentlyProcessing === '_mix' ? 'Mixing stems together...' : currentlyProcessing ? `Processing ${currentlyProcessing.replace(/_/g, ' ')}...` : 'Please wait while we shift the pitch and tempo...'}
{doneCount} of {totalSteps} complete