0 ? this.props.onClick : this.handleMaxUploadReached}
multiple={multiple}
accept={accept}
/>
{emojiSpan}
);
}
}
FileUpload.propTypes = {
intl: intlShape.isRequired,
onUploadError: React.PropTypes.func,
getFileCount: React.PropTypes.func,
getTarget: React.PropTypes.func.isRequired,
onClick: React.PropTypes.func,
onFileUpload: React.PropTypes.func,
onUploadStart: React.PropTypes.func,
onFileUploadChange: React.PropTypes.func,
onTextDrop: React.PropTypes.func,
channelId: React.PropTypes.string,
postType: React.PropTypes.string,
onEmojiClick: React.PropTypes.func,
navBarName: React.PropTypes.string,
emojiEnabled: React.PropTypes.bool
};
export default injectIntl(FileUpload, {withRef: true});