"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-resize-trigger.tsx
var splitResizeTriggerProps = createSplitProps();
var FloatingPanelResizeTrigger = forwardRef((props, ref) => {
	const [resizeProps, localProps] = splitResizeTriggerProps(props, ["axis"]);
	const mergedProps = mergeProps(useFloatingPanelContext().getResizeTriggerProps(resizeProps), localProps);
	return /* @__PURE__ */ jsx(ark.div, {
		...mergedProps,
		ref
	});
});
FloatingPanelResizeTrigger.displayName = "FloatingPanelResizeTrigger";
//#endregion
export { FloatingPanelResizeTrigger };
