"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormPreviewFileUploader = exports.FormPreviewFileUploaderInner = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const PreviewFileUploader_1 = require("../../components/fileUploading/PreviewFileUploader");
const forwardRefWithGeneric_1 = require("../../components/forwardRefWithGeneric");
const useFormFieldProps_1 = require("../useFormFieldProps");
/**
 * PreviewFileUploader для формы
 */
const FormPreviewFileUploaderInner = (props, ref) => {
    const { error, ...fieldProps } = (0, useFormFieldProps_1.useFormFieldProps)(props);
    return (0, jsx_runtime_1.jsx)(PreviewFileUploader_1.PreviewFileUploader, { isError: error, ...fieldProps, ref: ref });
};
exports.FormPreviewFileUploaderInner = FormPreviewFileUploaderInner;
exports.FormPreviewFileUploader = (0, forwardRefWithGeneric_1.forwardRefWithGeneric)(exports.FormPreviewFileUploaderInner);
