import { Bed, Maximize2 } from 'lucide-react'; import type { PropertyProperties } from '@/types'; interface PropertyCardCompactProps { property: PropertyProperties; isActive?: boolean; isHighlighted?: boolean; avgPricePerSqm?: number; onClick?: () => void; } export function PropertyCardCompact({ property, isActive = false, isHighlighted = false, avgPricePerSqm, onClick, }: PropertyCardCompactProps) { const isGoodDeal = avgPricePerSqm && property.qmprice > 0 && property.qmprice < avgPricePerSqm * 0.9; const isExpensive = avgPricePerSqm && property.qmprice > avgPricePerSqm * 1.1; const priceIndicator = isGoodDeal ? { color: 'text-green-600 bg-green-50', label: 'Good deal' } : isExpensive ? { color: 'text-red-600 bg-red-50', label: 'Above avg' } : null; return (
{/* Thumbnail */}
{property.photo_thumbnail && ( {`${property.rooms}-bed, )}
{/* Details */}
£{property.total_price.toLocaleString()} {property.listing_type !== 'BUY' && ( /mo )}
{priceIndicator && ( {priceIndicator.label} )}
{property.rooms} {property.qm} m² £{property.qmprice}/m²
); }