import { motion } from "framer-motion"; import { useTranslation } from "react-i18next"; import PropertyMapWithMarkers from "../PropertyMapWithMarkers"; export default function MapSection({ mapSectionRef, isScrolling, resetSearch, filteredProperties }) { const { t } = useTranslation(); return ( <> {isScrolling && }

{filteredProperties.length > 0 ? t("searchResults") : t("no-properties")}

{t("newSearch")}
{filteredProperties.length > 0 ? (

{t("foundPropertiesCount", { count: filteredProperties.length })}

) : (

{t("noPropertiesMatchFilters")}

)}
{filteredProperties.length > 0 ? ( ({ ...p, lat: p.location.lat, lng: p.location.lng, address: p.location.address, }))} onPropertyClick={() => {}} /> ) : (

{t("no-properties")}

{t("try-changing-search-criteria")}

)}
); }