import { ProgressBar } from '@wordpress/components'; import { __, sprintf, _n } from '@wordpress/i18n'; import { Icon, check, error as errorIcon } from '@wordpress/icons'; import type { OrderRow, OrderProgressStatus } from './types'; import { assertNever, orderLabel } from './helpers'; interface ProgressViewProps { rows: OrderRow[]; } const renderStatusIcon = ( status: OrderProgressStatus ) => { switch ( status ) { case 'succeeded': return ; case 'failed': return ; case 'pending': return (