+ {/* When using react-dropzone, it is important to apply the getRootProps to the
+ Field component and not the FileUpload component so screenreaders see the Label.
+ This should be noted in the docs */}
+
+
+
+ {isReadOnly && (
+ <>
+
+
+ You can not upload more files
+
+ >
+ )}
+ {!isReadOnly && (
+ <>
+ {isDragReject && }
+
+ {isDragReject
+ ? 'File type not accepted'
+ : isDragActive
+ ? 'Drop file(s) here'
+ : 'Drop file(s) or click to upload'}
+
+
+ File must be .svg, {MAX_FILES - files.length} of{' '}
+ {MAX_FILES} files remaining
+
+ Upload files
+ >
+ )}
+
+
+
+
+ {files.length > 0 && (
+ <>
+