mhsf-dev/apps/www/src/app/global-error.tsx
2025-03-01 19:24:08 -06:00

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>
);
}