'use strict';
import React from 'react';
let FileDragAndDropDialog = React.createClass({
propTypes: {
hasFiles: React.PropTypes.bool,
multipleFiles: React.PropTypes.bool,
onClick: React.PropTypes.func
},
render() {
if(this.props.hasFiles) {
return null;
} else {
if(this.props.multipleFiles) {
return (
Click or drag to add files
);
} else {
return (
Drag a file here
or
choose a file to upload
);
}
}
}
});
export default FileDragAndDropDialog;