import { ComponentType, FC } from 'react' import withErrorBoundary from '@/infrastructure/error-boundary' const FallbackComponent: FC = () => { return <>An error occurred within the test container } export const withTestContainerErrorBoundary = function ( Component: ComponentType ) { return withErrorBoundary(Component, FallbackComponent) }