import React, { Fragment } from 'react'; import { SingleUpload } from '../components'; import { Box } from '@material-ui/core'; interface UploadFirmwareFormProps { uploading: boolean; progress?: ProgressEvent; onFileSelected: (file: File) => void; onCancel: () => void; } class UploadFirmwareForm extends React.Component { handleDrop = (files: File[]) => { const file = files[0]; if (file) { this.props.onFileSelected(files[0]); } }; render() { const { uploading, progress, onCancel } = this.props; return ( Upload a new firmware file below to replace the existing firmware. ); } } export default UploadFirmwareForm;