import { previewFileUploaderClassnames } from '../../constants';
import { useFileUploader } from '../useFileUploader';
export const usePreviewFileUploader = ({ placeholderImgSrc, isHidePersonalData, PdfViewer, accept = [], ...props }) => {
    const { dropZoneProps, fileListProps } = useFileUploader({
        ...props,
        accept,
        isMultiple: false,
    });
    return {
        dropZoneProps: {
            ...dropZoneProps,
            className: previewFileUploaderClassnames.dropzone,
            hintPlaceholderProps: {
                ...dropZoneProps.hintPlaceholderProps,
                placeholderImgSrc,
            },
        },
        fileListProps: {
            ...fileListProps,
            isHidePersonalData,
            PdfViewer,
        },
    };
};
