'use client'; import { useEffect } from 'react'; import { useTranslations } from 'next-intl'; import { motion } from 'framer-motion'; import { RefreshCw, Home } from 'lucide-react'; import Link from 'next/link'; import { Button } from '@/components/ui/button'; interface ErrorPageProps { error: Error & { digest?: string }; reset: () => void; } /** * Error boundary page * Displays when an unhandled error occurs */ export default function ErrorPage({ error, reset }: ErrorPageProps) { const t = useTranslations('errors'); useEffect(() => { // Log the error to an error reporting service console.error('Application error:', error); }, [error]); return (

!

{t('serverError')}

{t('serverErrorDescription')}

); }