import React, { ReactElement } from 'react'; import { EmptyState, TextButton } from '@wix/design-system'; import { useWixPatternsContainer } from '@wix/bex-core/react'; export interface LoadingErrorStateProps { dataHook?: string; image?: ReactElement; title?: string; subtitle?: string; action?: { text: string; onClick?: () => void; prefixIcon?: ReactElement; }; } export function LoadingErrorState(props: LoadingErrorStateProps) { const { dataHook, title, subtitle, image, action, ...rest } = props; const { translate: t } = useWixPatternsContainer(); return ( {action && ( {action.text} )} ); }