// @flow import * as React from 'react'; import Card from 'component/common/card'; import WebUploadItem from './internal/web-upload-item'; export type UploadItem = { progess: string, params: UpdatePublishFormData, xhr?: { abort: () => void }, }; type Props = { currentUploads: { [key: string]: UploadItem }, uploadCount: number, }; export default function WebUploadList(props: Props) { const { currentUploads, uploadCount } = props; return ( !!uploadCount && ( 1 ? __('You videos are currently uploading.') : __('Your video is currently uploading.') } body={
{/* $FlowFixMe */} {Object.values(currentUploads).map(({ progress, params, xhr }) => ( ))}
} /> ) ); }