+ {isLoading && }
+ {records && records.length > 0 ? (
+
+
+
+ {onSelect && selectedItems && (
+
+ Select
+
+ )}
+ {titleColumnsMap(columns)}
+ {itemActions && itemActions.length > 0 && (
+
+ Actions
+
+ )}
+
+
+
+ {records.map((record: any, index: number) => {
+ const isSelected = selectedItems
+ ? selectedItems.includes(record[idField])
+ : false;
+ return (
+
+ {onSelect && selectedItems && (
+
+ }
+ icon={}
+ />
+
+ )}
+ {rowColumnsMap(columns, record, classes, isSelected)}
+ {itemActions && itemActions.length > 0 && (
+
+ {elementActions(itemActions, record, isSelected)}
+
+ )}
+
+ );
+ })}
+
+
+ ) : (
+ {`There are no ${entityName} yet.`}
+ )}
+
+ {paginatorConfig && (
+