UNPKG

@cgi-learning-hub/ui

Version:

@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features

25 lines (24 loc) 604 B
import { jsx as i, jsxs as s, Fragment as n } from "react/jsx-runtime"; import { List as a, Divider as d } from "@mui/material"; import p from "./FileListItem.es.js"; const h = ({ files: r, onDelete: e, onClick: m, onDownload: l }) => /* @__PURE__ */ i(a, { sx: { display: "flex", flexDirection: "column" }, children: r.map((o, t) => /* @__PURE__ */ s(n, { children: [ /* @__PURE__ */ i( p, { file: o, onClick: m, onDelete: e, onDownload: l }, t ), t < r.length - 1 && /* @__PURE__ */ i(d, { variant: "middle" }) ] })) }); export { h as default };