"use client";
import { comboboxAnatomy } from "./combobox.anatomy.js";
import { ark } from "../factory.js";
import { useComboboxContext } from "./use-combobox-context.js";
import { forwardRef } from "react";
import { jsx } from "react/jsx-runtime";
//#region src/components/combobox/combobox-empty.tsx
var parts = comboboxAnatomy.build();
var ComboboxEmpty = forwardRef((props, ref) => {
	if (useComboboxContext().collection.size !== 0) return null;
	return /* @__PURE__ */ jsx(ark.div, {
		...parts.empty.attrs,
		...props,
		role: "presentation",
		ref
	});
});
ComboboxEmpty.displayName = "ComboboxEmpty";
//#endregion
export { ComboboxEmpty };
