"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { useFloatingPanelContext } from "./use-floating-panel-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/floating-panel/floating-panel-stage-trigger.tsx
var splitStageTriggerProps = createSplitProps();
var FloatingPanelStageTrigger = forwardRef((props, ref) => {
	const [stage, localProps] = splitStageTriggerProps(props, ["stage"]);
	const mergedProps = mergeProps(useFloatingPanelContext().getStageTriggerProps(stage), localProps);
	return /* @__PURE__ */ jsx(ark.button, {
		...mergedProps,
		ref
	});
});
FloatingPanelStageTrigger.displayName = "FloatingPanelStageTrigger";
//#endregion
export { FloatingPanelStageTrigger };
