import { jsx } from "react/jsx-runtime";
import { createSlotFill, PanelBody } from "@wordpress/components";
import { usePluginContext } from "@wordpress/plugins";
const { Fill, Slot } = createSlotFill("PluginPrePublishPanel");
const PluginPrePublishPanel = ({
  children,
  className,
  title,
  initialOpen = false,
  icon
}) => {
  const { icon: pluginIcon } = usePluginContext();
  return /* @__PURE__ */ jsx(Fill, { children: /* @__PURE__ */ jsx(
    PanelBody,
    {
      className,
      initialOpen: initialOpen || !title,
      title,
      icon: icon ?? pluginIcon,
      children
    }
  ) });
};
PluginPrePublishPanel.Slot = Slot;
var plugin_pre_publish_panel_default = PluginPrePublishPanel;
export {
  plugin_pre_publish_panel_default as default
};
//# sourceMappingURL=index.js.map
