"use client";
import { ark } from "../factory.js";
import { useComboboxContext } from "./use-combobox-context.js";
import { useComboboxItemPropsContext } from "./use-combobox-item-props-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/combobox/combobox-item-text.tsx
var ComboboxItemText = forwardRef((props, ref) => {
	const combobox = useComboboxContext();
	const itemProps = useComboboxItemPropsContext();
	const mergedProps = mergeProps(combobox.getItemTextProps(itemProps), props);
	return /* @__PURE__ */ jsx(ark.span, {
		...mergedProps,
		ref
	});
});
ComboboxItemText.displayName = "ComboboxItemText";
//#endregion
export { ComboboxItemText };
