"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormFileUploader = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const FileUploader_1 = require("../../components/fileUploading/FileUploader");
const forwardRefWithGeneric_1 = require("../../components/forwardRefWithGeneric");
const useFormFieldProps_1 = require("../useFormFieldProps");
/**
 * FileUploader для формы
 */
const FormFileUploaderInner = (props, ref) => {
    const { error, ...fieldProps } = (0, useFormFieldProps_1.useFormFieldProps)(props);
    // biome-ignore lint/suspicious/noTsIgnore:  Ошибка типизации при пробросе пропсов: isMultiple
    // @ts-ignore
    // TODO https://track.astral.ru/soft/browse/UIKIT-1926
    return (0, jsx_runtime_1.jsx)(FileUploader_1.FileUploader, { isError: error, ...fieldProps, ref: ref });
};
exports.FormFileUploader = (0, forwardRefWithGeneric_1.forwardRefWithGeneric)(FormFileUploaderInner);
