+
+ onChange(propertyName, e.target.value)}
+ placeholder="Enter image URL or upload file"
+ prefix={}
+ />
+ {
+ handleImageUpload(propertyName, file, onChange)
+ return false
+ }}>
+ }
+ title="Upload image file"
+ style={{
+ borderTopLeftRadius: 0,
+ borderBottomLeftRadius: 0,
+ height: '32px'
+ }}
+ />
+
+
+
+ {value && (
+
+

+
+ {value.startsWith('data:') ? 'Uploaded image' : 'Image URL'}
+
+
}
+ onClick={() => onChange(propertyName, '')}
+ title="Remove image"
+ style={{ flexShrink: 0, minWidth: 'auto', padding: '0 8px' }}
+ />
+
+ )}
+
+ )
+ }
+
+ if (type === 'string' && enumValues) {
+ return (
+