setFidelityGate((v) => !v)}
fuzzyDedup={fuzzyDedup}
onToggleFuzzy={() => setFuzzyDedup((v) => !v)}
/>
{batch?.combined && (
Fluxo combinado — {active.join(" → ")}
)}
{(() => {
const cmp =
batch?.lanes.find((l) => l.engine === "headroom")?.run?.encoderComparison ??
batch?.combined?.encoderComparison ??
null;
return cmp ? : null;
})()}
{activeDiff && (
Diff — {selectedLane ?? "combinado"}
)}
);
}
function orderByStack(active: string[], order: readonly string[]): string[] {
return order.filter((e) => active.includes(e));
}