Files
football-next/app/error.tsx
a.alinaghipour aa9ed69dd2 first commit
2026-04-05 15:53:20 +03:30

15 lines
607 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use client";
export default function Error({ error, reset }: { error: Error; reset: () => void }) {
return (
<div className="min-h-[70vh] flex flex-col items-center justify-center text-center px-6">
<div className="text-6xl mb-6">😬</div>
<h1 className="text-2xl font-bold mb-3">یه مشکلی پیش اومد</h1>
<p className="text-gray-500 mb-8 text-sm">{error.message}</p>
<button onClick={reset} className="bg-green-700 text-white px-6 py-3 rounded-xl font-bold hover:bg-green-800 transition">
دوباره امتحان کن
</button>
</div>
);
}