import { Box, Text } from '@wix/design-system'; import { StatusAlertFilled, StatusCompleteFilled, } from '@wix/wix-ui-icons-common'; import { ImportState } from '@wix/bex-core'; import React from 'react'; import { observer } from 'mobx-react-lite'; export interface ImportStepSummaryProps { state: ImportState; } function CountRow({ icon, color, children, }: { icon: React.ReactNode; color: string; children: React.ReactNode; }) { return ( {icon} {children} ); } function _ImportStepSummary({ state }: ImportStepSummaryProps) { const { result, translate: t } = state; const { created, updated, failed } = result; return ( {created > 0 && ( } color="G10"> {t('cairo.import.summaryCreated', { count: created })} )} {updated > 0 && ( } color="G10"> {t('cairo.import.summaryUpdated', { count: updated })} )} {failed > 0 && ( } color="R10"> {t('cairo.import.summaryFailed', { count: failed })} {t('cairo.import.summaryFailedHint')} )} ); } export const ImportStepSummary = observer(_ImportStepSummary);