/** * Global error boundary -- last-resort fallback. * Catches errors in the root layout itself. Must render its own / * since the root layout is unavailable when this boundary triggers. * Next.js requires a default export for error boundaries. * @see https://nextjs.org/docs/app/api-reference/file-conventions/error#global-errorjs */ 'use client' import { useEffect } from 'react' import { reportError } from '@/lib/error-reporting' export default function GlobalError({ error, reset, }: { error: Error & { digest?: string } reset: () => void }) { useEffect(() => { reportError(error, { boundary: 'global' }) }, [error]) return ( Error | Barazo

Something went wrong

An unexpected error occurred. Please try again.

) }