'use client'; import { useEffect } from 'react'; import { AlertTriangle, RefreshCw, Home } from 'lucide-react'; export default function Error({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { useEffect(() => { // Log the error to an error reporting service console.error('Application error:', error); }, [error]); return (
We're sorry, something went wrong. Our team has been notified and is working on the issue.
{/* Error Details (Only in development) */} {process.env.NODE_ENV === 'development' && (Error details (dev only):
{error.message}
{error.digest && (
Error ID: {error.digest}
)}If the problem persists, please contact technical support with the error ID above.
Need help? Contact support