"use client";
import { ark } from "../factory.js";
import { useTagsInputContext } from "./use-tags-input-context.js";
import { useTagsInputItemPropsContext } from "./use-tags-input-item-props-context.js";
import { forwardRef } from "react";
import { mergeProps } from "@zag-js/react";
import { jsx } from "react/jsx-runtime";
//#region src/components/tags-input/tags-input-item-delete-trigger.tsx
var TagsInputItemDeleteTrigger = forwardRef((props, ref) => {
	const tagsInput = useTagsInputContext();
	const itemProps = useTagsInputItemPropsContext();
	const mergedProps = mergeProps(tagsInput.getItemDeleteTriggerProps(itemProps), props);
	return /* @__PURE__ */ jsx(ark.button, {
		...mergedProps,
		ref
	});
});
TagsInputItemDeleteTrigger.displayName = "TagsInputItemDeleteTrigger";
//#endregion
export { TagsInputItemDeleteTrigger };
