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"; interface BundleData { id: string; name: string; target: string; size: number; } interface AirDCPPBundlesProps { data: BundleData[]; } export const AirDCPPBundles = (props: AirDCPPBundlesProps) => { return (
{map(props.data, (bundle, index) => ( ))}
Filename Size Download Status Bundle ID
{ellipsize(bundle.name, 58)}

{ellipsize(bundle.target, 88)}

{prettyBytes(bundle.size)} {bundle.id}
); };