"use client";
import { jsx as _jsx } from "react/jsx-runtime";
import { Menu } from "../menu/Menu.js";
import { ListboxProvider, useListboxProvider } from "./ListboxProvider.js";
/**
 * @since 6.0.0
 * @internal
 */ export function Listbox(props) {
    const { value, setValue, children, nodeRef, selectedIconAfter, selectedIcon, unselectedIcon, disableSelectedIcon, ...remaining } = props;
    return /*#__PURE__*/ _jsx(ListboxProvider, {
        value: useListboxProvider({
            value,
            setValue,
            selectedIcon,
            selectedIconAfter,
            disableSelectedIcon,
            unselectedIcon
        }),
        children: /*#__PURE__*/ _jsx(Menu, {
            ...remaining,
            ref: nodeRef,
            children: children
        })
    });
}

//# sourceMappingURL=Listbox.js.map