"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FileList = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const FileUploaderFile_1 = require("../../FileUploaderFile");
const styles_1 = require("./styles");
const FileList = ({ isMultiple, files, className, deletingFileId, ...restProps }) => ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { "$isMultiple": isMultiple, className: className, children: files?.map((file) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)(FileUploaderFile_1.FileUploaderFile, { ...file, ...restProps, isDeletingFile: deletingFileId === file.id }) }, file.id))) }));
exports.FileList = FileList;
