"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.usePreviewFileUploader = void 0;
const constants_1 = require("../../constants");
const useFileUploader_1 = require("../useFileUploader");
const usePreviewFileUploader = ({ placeholderImgSrc, isHidePersonalData, PdfViewer, accept = [], ...props }) => {
    const { dropZoneProps, fileListProps } = (0, useFileUploader_1.useFileUploader)({
        ...props,
        accept,
        isMultiple: false,
    });
    return {
        dropZoneProps: {
            ...dropZoneProps,
            className: constants_1.previewFileUploaderClassnames.dropzone,
            hintPlaceholderProps: {
                ...dropZoneProps.hintPlaceholderProps,
                placeholderImgSrc,
            },
        },
        fileListProps: {
            ...fileListProps,
            isHidePersonalData,
            PdfViewer,
        },
    };
};
exports.usePreviewFileUploader = usePreviewFileUploader;
