"use client";
const require_segment_group_anatomy = require("./segment-group.anatomy.cjs");
const require_factory = require("../factory.cjs");
const require_use_segment_group_context = require("./use-segment-group-context.cjs");
const require_use_segment_group_item_props_context = require("./use-segment-group-item-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/segment-group/segment-group-item-control.tsx
var SegmentGroupItemControl = (0, react.forwardRef)((props, ref) => {
	const segmentGroup = require_use_segment_group_context.useSegmentGroupContext();
	const itemProps = require_use_segment_group_item_props_context.useSegmentGroupItemPropsContext();
	const mergedProps = (0, _zag_js_react.mergeProps)(segmentGroup.getItemControlProps(itemProps), require_segment_group_anatomy.parts.itemControl.attrs, props);
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
		...mergedProps,
		ref
	});
});
SegmentGroupItemControl.displayName = "SegmentGroupItemControl";
//#endregion
exports.SegmentGroupItemControl = SegmentGroupItemControl;
