+ |
+ {renderEmptyRowsFallback?.({ table }) ?? (
+
+ {globalFilter || columnFilters.length
+ ? localization.noResultsFound
+ : localization.noRecordsToDisplay}
+
+ )}
+ |
+
+ ) : (
+ <>
+ {(virtualRows ?? rows).map((rowOrVirtualRow, staticRowIndex) => {
+ let row = rowOrVirtualRow;
+ if (rowVirtualizer) {
+ if (renderDetailPanel) {
+ if (rowOrVirtualRow.index % 2 === 1) {
+ return null;
+ } else {
+ staticRowIndex = rowOrVirtualRow.index / 2;
+ }
+ } else {
+ staticRowIndex = rowOrVirtualRow.index;
+ }
+ row = rows[staticRowIndex];
+ }
+ const props = {
+ ...commonRowProps,
+ pinnedRowIds,
+ row,
+ rowVirtualizer,
+ staticRowIndex,
+ virtualRow: rowVirtualizer ? rowOrVirtualRow : undefined,
+ };
+ const key = `${row.id}-${row.index}`;
+ return memoMode === "rows" ? (
+