import type { StemBatchResult } from '../api' import { Modal } from './Modal' /** * The Details behind a finished conversion's toast: every track that was * skipped or failed, with its reason (decided: a long skip list must not vanish * into a toast). */ export function StemReportDialog({ result, onClose }: { result: StemBatchResult; onClose: () => void }) { const rows = [ ...result.failed.map((s) => ({ ...s, failed: true })), ...result.skipped.map((s) => ({ ...s, failed: false })), ] const n = result.converted.length return (
{n} converted to stems · {result.skipped.length} skipped · {result.failed.length} failed
{n ? 'Save to keep the converted tracks.' : ''}
) }