/* * Full detail view for a single pet on the adoption detail page. * * Author: Shiv * Date: April 2026 */ import Link from "next/link"; import { getStatusClass } from "@/components/petUtils"; const fieldRowCls = "flex items-center px-5 py-[0.85rem] border-b border-[#eee] last:border-b-0"; const fieldLabelCls = "w-[140px] text-[0.9rem] font-semibold text-[#888] uppercase tracking-[0.04em] shrink-0"; const fieldValueCls = "text-base text-[#333]"; //Full detail view for a single pet, shown on the adopt detail page export default function PetProfile({ petId, petName, petSpecies, petBreed, petAge, petStatus, petPrice, imageUrl, storeId, storeName }) { return (
{petName} { e.currentTarget.onerror = null; e.currentTarget.src = "/images/pet-placeholder.png"; }} />

{petName}

{petStatus}
Species {petSpecies ?? "-"}
Breed {petBreed ?? "-"}
Age {petAge != null ? `${petAge} ${petAge === 1 ? "year" : "years"}` : "-"}
Adoption Fee {petPrice != null ? `$${parseFloat(petPrice).toFixed(2)}` : "-"}
{petStatus?.toLowerCase() === "available" && (

Interested in adopting {petName}? Visit us in store or schedule an appointment.

Schedule an Appointment
)}
); }