"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormTreeAutocomplete = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const TreeAutocomplete_1 = require("../../components/TreeAutocomplete");
const useFormFieldProps_1 = require("../useFormFieldProps");
/**
 * FormTreeAutocomplete для формы
 */
const FormTreeAutocomplete = (props) => {
    const { error, ...fieldProps } = (0, useFormFieldProps_1.useFormFieldProps)({
        ...props,
        defaultValue: props.defaultValue || null,
    });
    return (0, jsx_runtime_1.jsx)(TreeAutocomplete_1.TreeAutocomplete, { isError: error, ...fieldProps });
};
exports.FormTreeAutocomplete = FormTreeAutocomplete;
