'use client'; import { useEffect } from 'react'; import { useTranslations } from 'next-intl'; import * as Sentry from '@sentry/nextjs'; import { Button } from '@/components/ui/shared/Button'; export default function LocaleError({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { const t = useTranslations('common'); useEffect(() => { Sentry.captureException(error); }, [error]); return (

{t('pageErrorTitle')}

{t('pageErrorBody')}

); }