"use client"; import { type ReactElement, type ReactNode } from "react"; import { useListboxContext } from "../form/ListboxProvider.js"; import { Option } from "../form/Option.js"; import { type AutocompleteGetOptionLabel, type AutocompleteGetOptionProps, type AutocompleteOption, } from "./types.js"; /** * @since 6.0.0 * @internal */ export interface AutocompleteListboxChildrenProps< Option extends AutocompleteOption, > extends Required>, Required> { query: string; options: readonly Option[]; children: ReactNode; noOptionsChildren: ReactNode; } /** * NOTE: This was moved to a second component to improve performance so * that the availableOptions aren't looped until the listbox is visible * * @since 6.0.0 * @internal */ export function AutocompleteListboxChildren ); })} ); }