import ErrorBoundary, { IErrorBoundaryFallbackComponentProps, IOnErrorCallback, } from './ErrorBoundary'; export interface IWithErrorBoundaryOption

{ Component?: React.ComponentType

; FallbackComponent?: React.ComponentType; onError?: IOnErrorCallback; } export function withErrorBoundary

({ Component: BaseComponent, FallbackComponent, onError, }: IWithErrorBoundaryOption

= {}) { const ErrorBoundaryInner = (props: P) => ( ); return ErrorBoundaryInner; } export default withErrorBoundary;