"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PreviewFileUploader = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const usePreviewFileUploader_1 = require("../hooks/usePreviewFileUploader");
const PreviewFileUploaderDropZone_1 = require("../PreviewFileUploaderDropZone");
const FileList_1 = require("./FileList");
exports.PreviewFileUploader = (0, react_1.forwardRef)((props, forwardedRef) => {
    const { dropZoneProps, fileListProps } = (0, usePreviewFileUploader_1.usePreviewFileUploader)(props);
    return ((0, jsx_runtime_1.jsx)(PreviewFileUploaderDropZone_1.PreviewFileUploaderDropZone, { ref: forwardedRef, ...dropZoneProps, children: (0, jsx_runtime_1.jsx)(FileList_1.FileList, { ...fileListProps }) }));
});
