"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AsyncAutocomplete = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const Autocomplete_1 = require("../Autocomplete");
const forwardRefWithGeneric_1 = require("../forwardRefWithGeneric");
const useLogic_1 = require("./useLogic");
/* cSpell:ignore Промис */
const AsyncAutocompleteInner = (props, ref) => {
    const { autocompleteProps } = (0, useLogic_1.useLogic)(props);
    return (0, jsx_runtime_1.jsx)(Autocomplete_1.Autocomplete, { ...autocompleteProps, ref: ref });
};
exports.AsyncAutocomplete = (0, forwardRefWithGeneric_1.forwardRefWithGeneric)(AsyncAutocompleteInner);
