"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FileUploader = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const FileUploaderDropzone_1 = require("../FileUploaderDropzone");
const useFileUploader_1 = require("../hooks/useFileUploader");
const FIleList_1 = require("./FIleList");
exports.FileUploader = (0, react_1.forwardRef)((props, forwardedRef) => {
    const { dropZoneProps, fileListProps } = (0, useFileUploader_1.useFileUploader)(props);
    return ((0, jsx_runtime_1.jsx)(FileUploaderDropzone_1.FileUploaderDropzone, { ref: forwardedRef, ...dropZoneProps, children: (0, jsx_runtime_1.jsx)(FIleList_1.FileList, { ...fileListProps }) }));
});
