import React from 'react'; import PropTypes from 'prop-types'; import { sprintf, translate as __ } from 'foremanReact/common/I18n'; import ForemanModal from 'foremanReact/components/ForemanModal'; import { foremanUrl } from 'foremanReact/common/helpers'; import { WEBHOOK_DELETE_MODAL_ID } from '../../constants'; const WebhookDeleteModal = ({ toDelete, onSuccess }) => { const { id, name } = toDelete; return ( {sprintf(__('You are about to delete %s. Are you sure?'), name)} ); }; WebhookDeleteModal.propTypes = { toDelete: PropTypes.object, onSuccess: PropTypes.func.isRequired, }; WebhookDeleteModal.defaultProps = { toDelete: {}, }; export default WebhookDeleteModal;