import React from 'react'; import { Button } from 'react-bootstrap'; import { ExportStats } from 'services/exportService'; import { formatDateTime } from 'utils/file'; import constants from 'utils/strings/constants'; import { Label, Row, Value } from './Container'; import { ComfySpan } from './ExportInProgress'; import InProgressIcon from './icons/InProgressIcon'; interface Props { show: boolean onHide: () => void exportFolder: string exportSize: string lastExportTime: number exportStats: ExportStats updateExportFolder: (newFolder: string) => void; exportFiles: () => void; retryFailed: () => void; } export default function ExportFinished(props: Props) { const totalFiles = props.exportStats.failed + props.exportStats.success; return ( <>
{formatDateTime(props.lastExportTime)} {props.exportStats.success} / {totalFiles} {props.exportStats.failed} / {totalFiles} {props.exportStats.failed !== 0 && }
); }