'use client'; import Link from 'next/link'; import Image from 'next/image'; import { MapPin, ChevronRight, AlertTriangle } from 'lucide-react'; import { Animal, formatAge } from '@/lib/mock-data'; interface AnimalCardProps { animal: Animal; index?: number; } export default function AnimalCard({ animal, index = 0 }: AnimalCardProps) { const ageLabel = formatAge(animal.ageMonths); const sexSymbol = animal.sex === 'MALE' ? '♂' : '♀'; const sterilizedLabel = animal.sterilized ? '· Esterilizado ✓' : ''; const subline = `${animal.breed} · ${ageLabel} ${sterilizedLabel}`.trim(); return (
{/* Fotografia */}
{`${animal.name} { (e.currentTarget as HTMLElement).style.transform = 'scale(1.04)'; }} onMouseLeave={e => { (e.currentTarget as HTMLElement).style.transform = 'scale(1)'; }} /> {/* Gradiente base da foto */} {/* Corpo do card */}
{/* Nome + sexo */}

{animal.name}

{sexSymbol}
{/* Raça · Idade · Esterilizado */}

{subline}

{/* Localização */}
{/* Spacer */}
{/* Separador */}
{/* Acções */}
Ver mais Adoptar
); }