"use strict";

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

function ConfirmDeleteFontSizeDialog({
  fontSize,
  isOpen,
  toggleOpen,
  handleRemoveFontSize
}) {
  const handleConfirm = async () => {
    toggleOpen();
    handleRemoveFontSize(fontSize);
  };
  const handleCancel = () => {
    toggleOpen();
  };
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.__experimentalConfirmDialog, {
    isOpen: isOpen,
    cancelButtonText: (0, _i18n.__)('Cancel'),
    confirmButtonText: (0, _i18n.__)('Delete'),
    onCancel: handleCancel,
    onConfirm: handleConfirm,
    size: "medium",
    children: fontSize && (0, _i18n.sprintf)(/* translators: %s: Name of the font size preset. */
    (0, _i18n.__)('Are you sure you want to delete "%s" font size preset?'), fontSize.name)
  });
}
var _default = exports.default = ConfirmDeleteFontSizeDialog;
//# sourceMappingURL=confirm-delete-font-size-dialog.js.map