mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-12 15:34:58 -05:00
18 lines
523 B
TypeScript
18 lines
523 B
TypeScript
'use client'
|
|
|
|
import NextError from 'next/error'
|
|
|
|
export default function GlobalError({ error }: { error: Error & { digest?: string } }) {
|
|
return (
|
|
<html lang='en'>
|
|
<body>
|
|
{/* `NextError` is the default Next.js error page component. Its type
|
|
definition requires a `statusCode` prop. However, since the App Router
|
|
does not expose status codes for errors, we simply pass 0 to render a
|
|
generic error message. */}
|
|
<NextError statusCode={0} />
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|