/* FreeSize — recursive tree rows */ function TreeRows({ node, depth, parentSize, globalMax, expanded, onToggle, selected, onSelect, onReveal, showMeta }) { const { fmt, heatColor, heatT, fmtInt } = window.FZ; const isDir = node.type === "dir"; const isOpen = expanded.has(node.id); const share = parentSize > 0 ? node.size / parentSize : 0; const t = heatT(node.size, globalMax); const color = heatColor(t); const sz = window.FZ.formatBytes(node.size); const indent = 8 + depth * 18; return (
onSelect(node.id)} >
{isDir ? (isOpen ? : ) : } {node.name} {showMeta && isDir && ( {fmtInt(node.files)} Dateien )}
{sz.value}{sz.unit}
{isDir && isOpen && node.children && node.children.map((c) => ( ))}
); } window.TreeRows = TreeRows;