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