import React, { Component } from 'react' import PropTypes from 'prop-types' import Dropzone from 'react-dropzone' class ImportDialogBox extends Component { handleFile = (files, e) => { e.preventDefault() // prevent it from triggering the default drag-drop handler this.props.onFileAdded(files[0]) } render = () => { return (

EXPORT

Export as CSV
Export as JSON
Download screenshot

IMPORT

To upload a file, drop it here:

Drop files here!

See docs.metamaps.cc for instructions.

) } } ImportDialogBox.propTypes = { onFileAdded: PropTypes.func, downloadScreenshot: PropTypes.func, onExport: PropTypes.func } export default ImportDialogBox