"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = DeleteConfirmDialog;
var _components = require("@wordpress/components");
var _i18n = require("@wordpress/i18n");
var _jsxRuntime = require("react/jsx-runtime");
/**
 * WordPress dependencies
 */

function DeleteConfirmDialog({
  onClose,
  onConfirm
}) {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.__experimentalConfirmDialog, {
    isOpen: true,
    onConfirm: () => {
      onConfirm();

      // Immediate close avoids ability to hit delete multiple times.
      onClose();
    },
    onCancel: onClose,
    confirmButtonText: (0, _i18n.__)('Delete'),
    size: "medium",
    children: (0, _i18n.__)('Are you sure you want to delete this Navigation Menu?')
  });
}
//# sourceMappingURL=delete-confirm-dialog.js.map