import React, { PropTypes, Component } from 'react' import Dropzone from 'react-dropzone' class ImportDialogBox extends Component { constructor(props) { super(props) this.state = { } } handleExport = format => () => { window.open(`${window.location.pathname}/export.${format}`, '_blank') } handleFile = (files, e) => { this.props.onFileAdded(files[0]) } render = () => { return (

EXPORT

Export as CSV
Export as JSON

IMPORT

To upload a file, drop it here:

Drop files here!

See docs.metamaps.cc for instructions.

) } } ImportDialogBox.propTypes = { onFileAdded: PropTypes.func, exampleImageUrl: PropTypes.string } export default ImportDialogBox