+ An unexpected error occurred. You can try again or reload the app. +
+ + {/* Expandable error details */} + {this.state.error && ( + + )} + {this.state.showDetails && this.state.error && ( +
+ {this.state.error.message}
+ {this.state.error.stack && `\n\n${this.state.error.stack}`}
+
+ )}
+
+ {/* Action buttons */}
+ ( + Component: React.ComponentType
,
+ fallback?: React.ReactNode
+) {
+ const displayName = Component.displayName || Component.name || "Component";
+
+ const Wrapped = (props: P) => (
+