import React from 'react'; import { Button, ProgressBar } from 'react-bootstrap'; import styled from 'styled-components'; import constants from 'utils/strings/constants'; import InProgressIcon from './icons/InProgressIcon'; import MessageDialog from './MessageDialog'; import { Label, Row, Value } from './Container'; import { ExportState, ExportStats } from './ExportModal'; export const ComfySpan = styled.span` word-spacing:1rem; color:#ddd; `; interface Props { show: boolean onHide: () => void updateExportState: (newState: ExportState) => void; exportFolder: string exportSize: string exportState: ExportState exportStats: ExportStats exportFiles: () => void; cancelExport: () => void } export default function ExportInProgress(props: Props) { const pauseExport = () => { props.updateExportState(ExportState.PAUSED); props.cancelExport(); }; const cancelExport = () => { props.updateExportState(ExportState.FINISHED); props.cancelExport(); }; return (
{props.exportFolder} 24GB
{props.exportStats.current} / {props.exportStats.total} files exported
{props.exportState === ExportState.PAUSED ? : }
); }