"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { useSplitterContext } from "./use-splitter-context.js";
import { SplitterResizeTriggerPropsProvider } from "./use-splitter-resize-trigger-props-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/splitter/splitter-resize-trigger.tsx
var splitResizeTriggerProps = createSplitProps();
var SplitterResizeTrigger = forwardRef((props, ref) => {
	const [triggerProps, localProps] = splitResizeTriggerProps(props, ["disabled", "id"]);
	const mergedProps = mergeProps(useSplitterContext().getResizeTriggerProps(triggerProps), localProps);
	return /* @__PURE__ */ jsx(SplitterResizeTriggerPropsProvider, {
		value: triggerProps,
		children: /* @__PURE__ */ jsx(ark.button, {
			ref,
			...mergedProps
		})
	});
});
SplitterResizeTrigger.displayName = "SplitterResizeTrigger";
//#endregion
export { SplitterResizeTrigger };
