import React from "react"; import { Modal } from "modal/modal"; import FormField from "component/formField/index"; class ModalRemoveFile extends React.PureComponent { constructor(props) { super(props); this.state = { deleteChecked: false, abandonClaimChecked: false, }; } handleDeleteCheckboxClicked(event) { this.setState({ deleteChecked: event.target.checked, }); } handleAbandonClaimCheckboxClicked(event) { this.setState({ abandonClaimChecked: event.target.checked, }); } render() { const { claimIsMine, closeModal, deleteFile, fileInfo: { outpoint }, title, } = this.props; const { deleteChecked, abandonClaimChecked } = this.state; return ( deleteFile(outpoint, deleteChecked, abandonClaimChecked)} onAborted={closeModal} >

{__("Are you sure you'd like to remove")} {title}{" "} {__("from LBRY?")}

{claimIsMine &&
}
); } } export default ModalRemoveFile;