"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TreeLikeAsyncAutocomplete = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const Input_1 = require("./Input");
const OptionsModal_1 = require("./OptionsModal");
const useLogic_1 = require("./useLogic");
exports.TreeLikeAsyncAutocomplete = (0, react_1.forwardRef)((props, forwardedRef) => {
    const { inputProps, optionsModalProps } = (0, useLogic_1.useLogic)(props);
    return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Input_1.Input, { ref: forwardedRef, ...inputProps }), (0, jsx_runtime_1.jsx)(OptionsModal_1.OptionsModal, { ...optionsModalProps })] }));
});
