import Image from 'next/image'; import Link from 'next/link'; import { FaBed, FaBath, FaRulerCombined, FaMoneyBill, FaMapMarker, } from 'react-icons/fa'; const PropertyCard = ({ property }) => { const getRateDisplay = () => { const { rates } = property; if (rates.monthly) { return `$${rates.monthly.toLocaleString()}/mo`; } else if (rates.weekly) { return `$${rates.weekly.toLocaleString()}/wk`; } else if (rates.nightly) { return `$${rates.nightly.toLocaleString()}/night`; } }; return (
{property.type}

{property.name}

{getRateDisplay()}

{property.beds} Beds

{property.baths} Baths

{' '} {property.square_feet} sqft

Weekly

Monthly

{' '} {property.location.city}, {property.location.state}
Details
); }; export default PropertyCard;