import { jsx } from "react/jsx-runtime";
import { MenuItem } from "@wordpress/components";
import { __ } from "@wordpress/i18n";
import { comment as commentIcon } from "@wordpress/icons";
import { privateApis as blockEditorPrivateApis } from "@wordpress/block-editor";
import { unlock } from "../../lock-unlock";
const { CommentIconSlotFill } = unlock(blockEditorPrivateApis);
const AddCommentMenuItem = ({ onClick }) => {
  return /* @__PURE__ */ jsx(CommentIconSlotFill.Fill, { children: ({ onClose }) => /* @__PURE__ */ jsx(
    MenuItem,
    {
      icon: commentIcon,
      onClick: () => {
        onClick();
        onClose();
      },
      "aria-haspopup": "dialog",
      children: __("Add note")
    }
  ) });
};
var comment_menu_item_default = AddCommentMenuItem;
export {
  comment_menu_item_default as default
};
//# sourceMappingURL=comment-menu-item.js.map
