import { jsx } from "react/jsx-runtime";
import {
  __experimentalUseSlotFills as useSlotFills,
  createSlotFill
} from "@wordpress/components";
const slotName = "__experimentalMainDashboardButton";
const useHasBackButton = () => {
  const fills = useSlotFills(slotName);
  return Boolean(fills && fills.length);
};
const { Fill, Slot } = createSlotFill(slotName);
const BackButton = Fill;
const BackButtonSlot = () => {
  const fills = useSlotFills(slotName);
  return /* @__PURE__ */ jsx(
    Slot,
    {
      bubblesVirtually: true,
      fillProps: { length: !fills ? 0 : fills.length }
    }
  );
};
BackButton.Slot = BackButtonSlot;
var back_button_default = BackButton;
export {
  back_button_default as default,
  useHasBackButton
};
//# sourceMappingURL=back-button.js.map
