import React from 'react';
import ReactDOM from 'react-dom';
import Upload from '..';
// import { Button, Icon } from '../..';

// function handleClick(e) {
//   e.stopPropagation();
//   // download template
// }
ReactDOM.render(
  <Upload.Dragger
    action='http://118.31.33.81/docs/upload'
    listType="text"
    // disabled
    withCredentials = {false}
    // accept="image/png, image/jpg, image/jpeg, image/gif, image/bmp"
    onDragOver={onDragOver}
    // @ts-ignore
    onDrop={onDrop}
  />,
  document.getElementById('upload-demo-5'),
);

function onDragOver() {
  console.log('dragover callback');
}

function onDrop(fileList) {
  console.log('drop callback : ', fileList);
}
