Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 2x 2x | import { useTranslation } from 'react-i18next'
import { Button } from '@/components/ui/button'
import { BrandMark } from '@/shared/components/BrandMark'
interface ErrorFallbackProps {
onReload: () => void
}
export function ErrorFallback({ onReload }: ErrorFallbackProps) {
const { t } = useTranslation()
return (
<div className="flex min-h-screen flex-col items-center justify-center gap-4 p-8 text-center">
<BrandMark className="mb-2 size-16" />
<h1 className="text-2xl font-bold text-ink">{t('errors.boundary.title')}</h1>
<p className="max-w-md text-ink-muted">{t('errors.boundary.description')}</p>
<Button onClick={onReload}>{t('errors.boundary.reload')}</Button>
</div>
)
}
|