import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
import { forwardRef } from 'react';
import { Input } from './Input';
import { OptionsModal } from './OptionsModal';
import { useLogic } from './useLogic';
export const TreeLikeAsyncAutocomplete = forwardRef((props, forwardedRef) => {
    const { inputProps, optionsModalProps } = useLogic(props);
    return (_jsxs(_Fragment, { children: [_jsx(Input, { ref: forwardedRef, ...inputProps }), _jsx(OptionsModal, { ...optionsModalProps })] }));
});
