'use client'; import Image from 'next/image'; import Link from 'next/link'; import { useState } from 'react'; export default function SeasonCard({ season }) { const [imageError, setImageError] = useState(false); if (!season) return null; const handleImageError = () => { console.log("Image error for:", season.name); setImageError(true); }; // Get image URL with fallback const imageSrc = imageError ? '/images/placeholder.png' : season.poster; // Generate link const infoLink = `/anime/${season.id}`; return (