"use client";
import { createContext, useContext } from "react";
const context = createContext(null);
/**
 * **Client Component**
 *
 * @internal
 * @remarks \@since 6.0.0
 */ export const { Provider: ListboxProvider } = context;
/**
 * @internal
 * @remarks \@since 6.0.0
 */ export function useListboxContext() {
    const value = useContext(context);
    if (!value) {
        throw new Error("The `ListboxProvider` must be a parent component");
    }
    return value;
}

//# sourceMappingURL=useListboxProvider.js.map