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