Spaces:
Build error
Build error
File size: 594 Bytes
8e944c6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | "use client";
export default function Error({
error,
reset,
}: {
error: Error & { digest?: string };
reset: () => void;
}) {
return (
<div className="text-center py-20">
<h1 className="text-2xl font-bold text-gray-900 mb-4">
Something went wrong
</h1>
<p className="text-gray-500 mb-8">
{error.message || "An unexpected error occurred."}
</p>
<button
onClick={reset}
className="px-6 py-2 bg-indigo-600 text-white rounded-lg font-medium hover:bg-indigo-700"
>
Try again
</button>
</div>
);
}
|