import { ExportState, FiltersMap } from '@wix/bex-core'; import { Box, LinearProgressBar } from '@wix/design-system'; import React, { cloneElement, ReactElement } from 'react'; import { observer } from 'mobx-react-lite'; export interface ExportStepErrorProps { state: ExportState; children?: ReactElement; } function _ExportStepError({ state, children, }: ExportStepErrorProps) { const { counter } = state; return ( {children && cloneElement(children, { dataHook: 'export-error-message', })} ); } export const ExportStepError = observer(_ExportStepError);