+
{message?.message}
+ {cellCounts.invalidCells === 0 &&
+ (mode === 'validate' || mode === 'upload') &&
+ Object.keys(recordCounts).some(
+ (key) =>
+ recordCounts[key as keyof typeof recordCounts] !==
+ undefined &&
+ Object.keys(
+ recordCounts[key as keyof typeof recordCounts] ?? {}
+ ).length > 0
+ ) && (
+
+ {Object.entries(recordCounts)
+ .sort(
+ sortFunction(
+ ([value]) => RecordCountPriority.indexOf(value)
+ )
+ )
+ .map(([resultType, recordsPerType]) =>
+ recordsPerType !== undefined &&
+ Object.keys(recordsPerType).length > 0 ? (
+
+
+ {resultType === 'Uploaded'
+ ? wbText.recordsCreated()
+ : resultType === 'Updated'
+ ? wbText.recordsUpdated()
+ : resultType === 'Deleted'
+ ? wbText.recordsDeleted()
+ : wbText.recordsMatchedAndChanged()}
+
+
+ recordCount ?? 0
+ }
+ />
+
+ ) : null
+ )}
+
+ )}
+