| 'use client' | |
| import { useEffect } from 'react' | |
| import Link from 'next/link' | |
| export default function EligibleError({ | |
| error, | |
| reset, | |
| }: { | |
| error: Error & { digest?: string } | |
| reset: () => void | |
| }) { | |
| useEffect(() => { | |
| console.error('Eligible error:', error) | |
| }, [error]) | |
| return ( | |
| <div className="min-h-[60vh] flex items-center justify-center px-4"> | |
| <div className="max-w-md w-full text-center"> | |
| <div className="mb-4"> | |
| <svg className="mx-auto w-12 h-12 text-yellow-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
| <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.5} d="M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z" /> | |
| </svg> | |
| </div> | |
| <h2 className="text-xl font-bold text-gray-900 mb-2">Uygun hisseler yüklenemedi</h2> | |
| <p className="text-gray-600 mb-6">Sinyal taraması sırasında bir hata oluştu.</p> | |
| <div className="flex flex-col sm:flex-row gap-3 justify-center"> | |
| <button onClick={reset} className="px-5 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium"> | |
| Tekrar Dene | |
| </button> | |
| <Link href="/" className="px-5 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition-colors font-medium"> | |
| Ana Sayfa | |
| </Link> | |
| </div> | |
| </div> | |
| </div> | |
| ) | |
| } | |