mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-09 09:44:58 -05:00
20 lines
338 B
TypeScript
20 lines
338 B
TypeScript
|
|
'use client';
|
||
|
|
|
||
|
|
export default function GlobalError({
|
||
|
|
error,
|
||
|
|
reset,
|
||
|
|
}: {
|
||
|
|
error: Error & { digest?: string };
|
||
|
|
reset: () => void;
|
||
|
|
}) {
|
||
|
|
return (
|
||
|
|
<html>
|
||
|
|
<body>
|
||
|
|
<div>
|
||
|
|
<h1>Something went wrong!</h1>
|
||
|
|
<button onClick={() => reset()}>Try again</button>
|
||
|
|
</div>
|
||
|
|
</body>
|
||
|
|
</html>
|
||
|
|
);
|
||
|
|
}
|