Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
20 lines
458 B
TypeScript
20 lines
458 B
TypeScript
'use client'
|
|
|
|
import { useEffect } from 'react'
|
|
|
|
import { RouteErrorView } from '@/components/feedback/RouteErrorView'
|
|
import { reportClientError } from '@/lib/observability/client'
|
|
|
|
export default function Error({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) {
|
|
useEffect(() => {
|
|
reportClientError(error, 'root')
|
|
}, [error])
|
|
|
|
return (
|
|
<RouteErrorView
|
|
digest={error.digest}
|
|
onRetry={reset}
|
|
/>
|
|
)
|
|
}
|