'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 (
{/* Error Icon */}
{/* Error Message */}

Oops! Something went wrong

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}

)}
)} {/* Actions */}
Back to home
{/* Help Text */}

If the problem persists, please contact technical support with the error ID above.

{/* Additional Info */}

Need help? Contact support

); }