import React from "react"; import prettyBytes from "pretty-bytes"; import dayjs from "dayjs"; import ellipsize from "ellipsize"; import { map } from "lodash"; import {DownloadProgressTick} from "./DownloadProgressTick" export const AirDCPPBundles = (props) => { return (
{map(props.data, (bundle) => ( ))}
Filename Size Download Time Bundle ID
{ellipsize(bundle.name, 58)}
{ellipsize(bundle.target, 88)}
{prettyBytes(bundle.size)} {dayjs .unix(bundle.time_finished) .format("h:mm on ddd, D MMM, YYYY")} {/* Download progress */} {bundle.id}
); };