-
- {formFieldItems.map((field: any) => (
-
- ))}
-
+ {loading ? (
+
+ ) : (
+ <>
+
+ {formFieldItems.map((field: any) => (
+
+ ))}
+
-
- {
- setFileName(media.name);
- setCsvContent(result);
- }}
- fileType=".csv"
- />
-
-
+
+ {
+ setFileName(media.name);
+ setCsvContent(result);
+ }}
+ fileType=".csv"
+ />
+
+
+ >
+ )}
)}
);
-
- return <>{form}>;
};
export default UploadContactsDialog;