-
- {fullName[0]}
-
+ {Array.isArray(data) &&
+ data.map((_data, index) => {
+ const {
+ id,
+ email,
+ phone,
+ is_active: status,
+ name: fullName,
+ created_at: date,
+ } = _data;
+
+ return (
+
+
+
+
+
+
+ {fullName?.charAt(0).toUpperCase() ??
+ email?.charAt(0).toUpperCase()}
+
+
-
-
-
- {fullName}
-
-
- {email}
+
+
+ {fullName ?? email}
+
+
+ {email}
+
-
- |
-
-
- {phone ?? "Nil"}
- |
-
-
- {formatMongoDate(date)}
- |
-
-
-
- {status && (
- <>
-
- Active
- >
- )}
-
- {!status && (
- <>
-
- Inactive
- >
- )}
-
- |
-
-
-
-
-
-
-
-
- Actions
-
- Edit
- handleOpenDialog(id)}>
- Delete
-
-
-
- |
-
- );
- })}
+