芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/rentandbuyrealty.com/web/src/Components/Cards/MapCard.jsx
import Image from 'next/image' import React from 'react' import { formatPriceAbbreviated, isThemeEnabled, placeholderImage } from '@/utils' import { ImageToSvg } from './ImageToSvg' import { IoArrowForwardCircleOutline } from "react-icons/io5"; import { useRouter } from 'next/router'; const MapCard = ({ data, CurrencySymbol, PlaceHolderImg }) => { const router = useRouter() const themeEnabled = isThemeEnabled(); const viewProperty = (e) => { e.preventDefault() router.push(`properties-details/${data.slug_id}`) } return ( <>
{data.property_type}
{CurrencySymbol} {formatPriceAbbreviated(data.price)}
{themeEnabled ? (
) : (
)}
{data.category && data.category.category}
{data.title}
{data.city} {data.city ? "," : null} {data.state} {data.state ? "," : null} {data.country}
> ) } export default MapCard