setDragOver(false)}
+ onDrop={(e) => {
+ e.preventDefault();
+ setDragOver(false);
+ onChange(e.dataTransfer.files);
+ }}
+ onDragOver={(e) => {
+ e.preventDefault();
+ setDragOver(true);
+ }}
+ >
+
+ {files.length === 0 || disableFileNames
+ ? placeholder &&
{placeholder}
+ : files.map((f, i) => (
+ // eslint-disable-next-line react/no-array-index-key
+
+ {f?.name}
+
+ ))}
+
+