import type { FallbackProps } from "react-error-boundary"; import { useDevLogger } from "../../hooks/useDevLogger"; import GlobalErrorModal from "../modal/GlobalErrorModal"; /** * Error fallback component for React Error Boundary * Uses the existing GlobalErrorModal for consistent error display * @param error - The error that was caught * @param resetErrorBoundary - Function to reset the error boundary state */ const ErrorFallback = ({ error, resetErrorBoundary }: FallbackProps) => { useDevLogger(error); const handleClose = () => { // Reset the error boundary to allow the component tree to re-render resetErrorBoundary(); }; return ( ); }; export default ErrorFallback;