+ {contactLoading ? (
+
+ Loading...
+
+ ) : (
+ contacts.map((contact: any, index: number) => {
+ const cardProps: InterfaceContactCardProps = {
+ id: contact._id,
+ firstName: contact.firstName,
+ lastName: contact.lastName,
+ email: contact.email,
+ image: contact.image,
+ setSelectedContactName,
+ selectedContact,
+ setSelectedContact,
+ };
+ return
;
+ })
+ )}
+