'use client'; import { useEffect } from 'react'; import { useTranslations } from 'next-intl'; import { getAppServices } from '@/lib/services/create-services'; import { Container, Button, Heading } from '@/components/ui'; import Scribble from '@/components/Scribble'; export default function Error({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { const t = useTranslations('Error'); useEffect(() => { const services = getAppServices(); services.errors.captureException(error); services.logger.error('Application error caught by boundary', { message: error.message, stack: error.stack, digest: error.digest }); }, [error]); return ( {/* Industrial Background Element */}
500
500
{t('title')}

{t('description')}

{/* Decorative Industrial Line */}
); }