'use client' import { motion } from 'framer-motion' import { useEffect } from 'react' import { AlertTriangle, RefreshCw, Home, Mail, Bug } from 'lucide-react' import { Button } from '@/components/ui/button' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' import { Badge } from '@/components/ui/badge' import { Alert, AlertDescription } from '@/components/ui/alert' import Link from 'next/link' 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]) const errorDetails = { message: error.message || 'An unexpected error occurred', digest: error.digest || 'Unknown', timestamp: new Date().toISOString(), } return (
{/* Animated Error Icon */}
{/* Pulse effect */}
{/* Error Message */}
Application Error

Something went wrong!

We're sorry, but something unexpected happened. Our team has been notified and we're working to fix this issue.

{/* Error Details Card */} Error Details Message: {errorDetails.message} {process.env.NODE_ENV === 'development' && ( <> Error ID: {errorDetails.digest} Timestamp: {new Date(errorDetails.timestamp).toLocaleString()} )} {/* Action Buttons */} {/* Help Section */}

Need immediate assistance?

If this error persists, please contact our support team with the error details above.

support@padmaaja.com
📞 +91 98765 43210
{/* Debug Information (Development Only) */} {process.env.NODE_ENV === 'development' && ( 🚧 Development Mode - Debug Info
                  {error.stack || 'No stack trace available'}
                
)} {/* Footer */}

© 2024 Padmaaja Rasooi Pvt. Ltd. • "The careful choice"

) }