import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap'; import { gettext } from '../../utils/constants'; const propTypes = { restoreRepo: PropTypes.func.isRequired, toggle: PropTypes.func.isRequired }; class ConfirmRestoreRepo extends Component { constructor(props) { super(props); this.state = { btnDisabled: false }; } action = () => { this.setState({ btnDisabled: true }); this.props.restoreRepo(); } render() { const {formActionURL, csrfToken, toggle} = this.props; return ( {gettext('Restore Library')}

{gettext('Are you sure you want to restore this library?')}

); } } ConfirmRestoreRepo.propTypes = propTypes; export default ConfirmRestoreRepo;