"use client";
const require_listbox_anatomy = require("./listbox.anatomy.cjs");
const require_factory = require("../factory.cjs");
const require_use_listbox_context = require("./use-listbox-context.cjs");
let react = require("react");
let react_jsx_runtime = require("react/jsx-runtime");
//#region src/components/listbox/listbox-empty.tsx
var parts = require_listbox_anatomy.listboxAnatomy.build();
var ListboxEmpty = (0, react.forwardRef)((props, ref) => {
	if (require_use_listbox_context.useListboxContext().collection.size !== 0) return null;
	return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.ark.div, {
		...parts.empty.attrs,
		...props,
		role: "presentation",
		ref
	});
});
ListboxEmpty.displayName = "ListboxEmpty";
//#endregion
exports.ListboxEmpty = ListboxEmpty;
