mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
32 lines
626 B
TypeScript
32 lines
626 B
TypeScript
'use client';
|
||
|
||
import clsx from 'clsx';
|
||
import Button from 'components/rua/button';
|
||
|
||
const GlobalError = ({
|
||
error,
|
||
reset,
|
||
}: {
|
||
error: Error & { digest?: string };
|
||
reset: () => void;
|
||
}) => {
|
||
console.error(error);
|
||
|
||
return (
|
||
<html>
|
||
<body
|
||
className={clsx('w-full h-dvh flex', 'justify-center items-center')}
|
||
>
|
||
<div>
|
||
<h2 className="text-xl mb-1">Something went wrong! ノ( OωOノ)</h2>
|
||
<Button onClick={() => reset()} className="cursor-pointer">
|
||
Try again
|
||
</Button>
|
||
</div>
|
||
</body>
|
||
</html>
|
||
);
|
||
};
|
||
|
||
export default GlobalError;
|