mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-07-16 03:13:36 +00:00
20 lines
421 B
TypeScript
20 lines
421 B
TypeScript
'use client';
|
|
|
|
export default function Error({
|
|
error,
|
|
reset,
|
|
}: {
|
|
error: Error & { digest?: string };
|
|
reset: () => void;
|
|
}) {
|
|
return (
|
|
<div>
|
|
{/* TODO: Style this error page when implementing in your project */}
|
|
<h2>Something went wrong!</h2>
|
|
<p>{error.message || 'An unexpected error occurred'}</p>
|
|
<button onClick={() => reset()}>
|
|
Try again
|
|
</button>
|
|
</div>
|
|
);
|
|
} |