import { jsx as _jsx } from "react/jsx-runtime";
import { FileUploader, } from '../../components/fileUploading/FileUploader';
import { forwardRefWithGeneric } from '../../components/forwardRefWithGeneric';
import { useFormFieldProps } from '../useFormFieldProps';
/**
 * FileUploader для формы
 */
const FormFileUploaderInner = (props, ref) => {
    const { error, ...fieldProps } = useFormFieldProps(props);
    // biome-ignore lint/suspicious/noTsIgnore:  Ошибка типизации при пробросе пропсов: isMultiple
    // @ts-ignore
    // TODO https://track.astral.ru/soft/browse/UIKIT-1926
    return _jsx(FileUploader, { isError: error, ...fieldProps, ref: ref });
};
export const FormFileUploader = forwardRefWithGeneric(FormFileUploaderInner);
