"use client"; import { ShopCard } from "@/components/molecules/cards"; import { MOCK_SHOPS } from "@/lib/constants"; import type { ShopGridProps } from "./ShopGrid.types"; export default function ShopGrid({ searchName = "", searchAddress = "", }: ShopGridProps) { const filtered = MOCK_SHOPS.filter((shop) => { const matchesName = searchName.trim() === "" || shop.name.toLowerCase().includes(searchName.toLowerCase()); const matchesAddress = searchAddress.trim() === "" || shop.address.toLowerCase().includes(searchAddress.toLowerCase()); return matchesName && matchesAddress; }); if (filtered.length === 0) { return (

No shops found matching your search

); } return (
{filtered.map((shop) => ( ))}
); }