'use client' import React from 'react' import { handleISRError } from '../handle-isr-error' import { errorStyles, errorThemeCss, WarningIcon } from './error-styles' export type GlobalErrorComponent = React.ComponentType<{ error: any reset: () => void unstable_retry: () => void }> function DefaultGlobalError({ error }: { error: any }) { const digest: string | undefined = error?.digest const isServerError = !!digest const message = isServerError ? 'A server error occurred. Reload to try again.' : 'Reload to try again, or go back.' handleISRError({ error }) return (