'use client' import { HandleISRError } from '../handle-isr-error' const styles = { error: { // https://github.com/sindresorhus/modern-normalize/blob/main/modern-normalize.css#L38-L52 fontFamily: 'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"', height: '100vh', textAlign: 'center', display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', }, text: { fontSize: '14px', fontWeight: 400, lineHeight: '28px', margin: '0 8px', }, } as const export type GlobalErrorComponent = React.ComponentType<{ error: any }> function DefaultGlobalError({ error }: { error: any }) { const digest: string | undefined = error?.digest return (
{`Digest: ${digest}`}
: null}