import { jsx as _jsx } from "react/jsx-runtime";
import { PreviewFileUploader, } from '../../components/fileUploading/PreviewFileUploader';
import { forwardRefWithGeneric } from '../../components/forwardRefWithGeneric';
import { useFormFieldProps } from '../useFormFieldProps';
/**
 * PreviewFileUploader для формы
 */
export const FormPreviewFileUploaderInner = (props, ref) => {
    const { error, ...fieldProps } = useFormFieldProps(props);
    return _jsx(PreviewFileUploader, { isError: error, ...fieldProps, ref: ref });
};
export const FormPreviewFileUploader = forwardRefWithGeneric(FormPreviewFileUploaderInner);
