"use client"; import { useState, useEffect } from "react"; export default function ContactPage() { const [locations, setLocations] = useState([]); const [loading, setLoading] = useState(true); const [error, setError] = useState(null); useEffect(() => { const params = new URLSearchParams({ page: "0", size: "100", sort: "storeName,asc" }); fetch(`/api/v1/stores?${params}`) .then((res) => { if (!res.ok) throw new Error(`HTTP ${res.status}`); return res.json(); }) .then((data) => setLocations(data.content ?? [])) .catch((err) => setError(err.message)) .finally(() => setLoading(false)); }, []); return (

Contact Us

Reach the team, find a location, or connect with store personnel.

General Contact

Email: hello@leonspetstore.com.au

Phone: (03) 9000 0000

Hours: Mon–Sat, 9:00 AM – 6:00 PM

Store Locations

{loading &&

Loading locations...

} {error &&

Failed to load locations: {error}

} {!loading && !error && locations.length === 0 && (

No store locations found.

)} {!loading && !error && locations.length > 0 && (
{locations.map((location) => (
{location.storeName} { e.currentTarget.onerror = null; e.currentTarget.src = "/images/pet-placeholder.png"; }} />

{location.storeName}

{location.address}

{location.phone}

{location.email}

))}
)}
); }