import { jsx as _jsx } from "react/jsx-runtime";
import { TreeAutocomplete, } from '../../components/TreeAutocomplete';
import { useFormFieldProps } from '../useFormFieldProps';
/**
 * FormTreeAutocomplete для формы
 */
export const FormTreeAutocomplete = (props) => {
    const { error, ...fieldProps } = useFormFieldProps({
        ...props,
        defaultValue: props.defaultValue || null,
    });
    return _jsx(TreeAutocomplete, { isError: error, ...fieldProps });
};
