import classnames from 'classnames';
import Dropzone from 'react-dropzone';
import React from 'react';
import AddTorrentsDestination from './AddTorrentsDestination';
import Close from '../icons/Close';
import File from '../icons/File';
import Files from '../icons/Files';
import ModalActions from './ModalActions';
import TorrentActions from '../../actions/TorrentActions';
const METHODS_TO_BIND = [
'handleAddTorrents',
'handleDestinationChange',
'handleFileDrop'
];
export default class AddTorrents extends React.Component {
constructor() {
super();
this.state = {
isAddingTorrents: false,
files: null
};
METHODS_TO_BIND.forEach((method) => {
this[method] = this[method].bind(this);
});
}
handleFileDrop(files) {
this.setState({files});
}
handleFileRemove(file) {
console.log(file);
}
handleFilesClick(event) {
event.stopPropagation();
}
getActions() {
let icon = null;
let primaryButtonText = 'Add Torrent';
if (this.state.isAddingTorrents) {
icon =