21 lines
365 B
TypeScript
21 lines
365 B
TypeScript
"use client"
|
|
|
|
import styles from "./global-error.module.css"
|
|
|
|
export default function GlobalError({
|
|
error,
|
|
}: {
|
|
error: Error & { digest?: string }
|
|
}) {
|
|
console.log({ global_error: error })
|
|
return (
|
|
<html>
|
|
<body>
|
|
<div className={styles.layout}>
|
|
<h1>Something went really wrong!</h1>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|