import ErrorBoundary, { IErrorBoundaryFallbackComponentProps, IOnErrorCallback, } from './ErrorBoundary'; export interface IWithErrorBoundaryOption
{ Component?: React.ComponentType
;
FallbackComponent?: React.ComponentType ({
Component: BaseComponent,
FallbackComponent,
onError,
}: IWithErrorBoundaryOption = {}) {
const ErrorBoundaryInner = (props: P) => (