import { jsx as _jsx } from "react/jsx-runtime";
import { Autocomplete } from '../Autocomplete';
import { forwardRefWithGeneric } from '../forwardRefWithGeneric';
import { useLogic } from './useLogic';
/* cSpell:ignore Промис */
const AsyncAutocompleteInner = (props, ref) => {
    const { autocompleteProps } = useLogic(props);
    return _jsx(Autocomplete, { ...autocompleteProps, ref: ref });
};
export const AsyncAutocomplete = forwardRefWithGeneric(AsyncAutocompleteInner);
