"use client";
import { createSplitProps } from "../../utils/create-split-props.js";
import { ark } from "../factory.js";
import { useNavigationMenuContext } from "./use-navigation-menu-context.js";
import { NavigationMenuItemPropsProvider } from "./use-navigation-menu-item-props-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/navigation-menu/navigation-menu-item.tsx
var splitItemProps = createSplitProps();
var NavigationMenuItem = forwardRef((props, ref) => {
	const [itemProps, localProps] = splitItemProps(props, ["disabled", "value"]);
	const mergedProps = mergeProps(useNavigationMenuContext().getItemProps(itemProps), localProps);
	return /* @__PURE__ */ jsx(NavigationMenuItemPropsProvider, {
		value: itemProps,
		children: /* @__PURE__ */ jsx(ark.div, {
			...mergedProps,
			ref
		})
	});
});
NavigationMenuItem.displayName = "NavigationMenuItem";
//#endregion
export { NavigationMenuItem };
