0 ? "16px" : "0px",
+ flexDirection: uploadingFiles.length > 0 ? 'row' : 'column',
+ justifyContent: uploadingFiles.length > 0 ? 'space-between' : 'center',
+ height: uploadingFiles.length > 0 ? '80px' : '251px',
+ }}
+ >
+
+
+ {uploadingFiles.length > 0 ? (
+ <>
+
+

+
+
+ Drag and drop files here
+
+
+ Limit {Math.floor(maxSize / (1024 * 1024))}MB per file • SQL Only • {uploadingFiles.length}/{MAX_FILES} files
+
+
+
+
+ >
+ ) : (
+ <>
+

+
+ Drag and drop files here
+
+
+ or
+
+
+
+ Limit {Math.floor(maxSize / (1024 * 1024))}MB per file • SQL Only • {MAX_FILES} files max
+
+ >
+ )}
+
+
+
+ {allUploadsComplete && (
+
+
+
+ All valid files uploaded successfully!
+
+
+ )}
+
+ {fileLimitExceeded && (
+
setFileLimitExceeded(false)}
+ dismissButtonAriaLabel="Close"
+ styles={{
+ root: { display: "flex", alignItems: "center" },
+ }}
+ >
+
+ Maximum of {MAX_FILES} files allowed. Some files were not uploaded.
+
+ )}
+
+
+ {uploadingFiles.length > 0 && (
+