import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Modal, ModalHeader, ModalBody, ModalFooter, Button, FormGroup, Label, Input } from 'reactstrap'; import { gettext } from '../../utils/constants'; const propTypes = { executeOperation: PropTypes.func.isRequired, toggleDialog: PropTypes.func.isRequired }; class ConfirmUnlinkDevice extends Component { constructor(props) { super(props); this.state = { isChecked: false }; } toggle = () => { this.props.toggleDialog(); }; executeOperation = () => { this.toggle(); this.props.executeOperation(this.state.isChecked); }; onInputChange = (e) => { this.setState({ isChecked: e.target.checked }); }; render() { return ( {gettext('Unlink device')}

{gettext('Are you sure you want to unlink this device?')}

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