import React, { useContext } from "react";
import { PluginsContext } from "./../../../../ricos-context/index.js";
import { CustomHeadingButton } from "../CustomHeadingButton/custom-heading-button.js";
import { HeadingButton } from "../HeadingButton/heading-button.js";
const HeadingButtonSwitch = ({
  toolbarItem,
  dataHook
}) => {
  const plugins = useContext(PluginsContext);
  const headingsData = plugins?.getConfig("wix-rich-content-plugin-headings");
  return headingsData?.allowHeadingCustomization ? /* @__PURE__ */ React.createElement(CustomHeadingButton, { toolbarItem, dataHook }) : /* @__PURE__ */ React.createElement(HeadingButton, { toolbarItem, dataHook });
};
export {
  HeadingButtonSwitch
};
//# sourceMappingURL=heading-button-switch.js.map
