Spaces:
Sleeping
Sleeping
File size: 502 Bytes
0efb0d1 | 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 | 'use client'
export default function Error({
error,
reset,
}: {
error: Error & { digest?: string }
reset: () => void
}) {
return (
<div className="min-h-screen bg-background flex items-center justify-center">
<div className="text-center">
<h2 className="text-2xl font-semibold mb-4">Something went wrong!</h2>
<button
onClick={() => reset()}
className="btn-primary"
>
Try again
</button>
</div>
</div>
)
}
|