'use strict'; import React from 'react'; import { getLangText } from '../../utils/lang_utils'; 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 ( {getLangText('Click or drag to add files')} ); } else { return (

{getLangText('Drag a file here')}

{getLangText('or')}

{getLangText('choose a file to upload')}
); } } } }); export default FileDragAndDropDialog;