{rows.map((row, index) => {
const highlightClass =
row.highlight === 'tertiary'
? ' ios26-stat-value--tertiary'
: row.highlight === 'error'
? ' ios26-stat-value--error'
: row.highlight === 'primary' || row.highlight === true
? ' ios26-stat-value--primary'
: '';
return (
{row.icon &&
{row.icon}
}
{row.label.replace(/:$/, '')}
{row.value}
);
})}