import { Box, Checkbox, Paper, Typography } from '@mui/material' import { Building2, MapPin } from 'lucide-react' import type { Property } from '../../domain/property' import { getScoreTier, SCORE_THEME } from '../shared/scoreTheme' import { assetTypeLabel } from './latentNeedUtils' interface SelectablePropertyMatchCardProps { property: Property matchScore: number selected: boolean onToggle: () => void reason: string } export function SelectablePropertyMatchCard({ property, matchScore, selected, onToggle, reason, }: SelectablePropertyMatchCardProps) { const tier = getScoreTier(matchScore) const theme = SCORE_THEME[tier] const image = property.images?.[0] return ( e.stopPropagation()} size="small" sx={{ p: 0.5, mt: -0.5, ml: -0.5 }} /> {!image && } {property.title} {matchScore}% {property.location.city} · {assetTypeLabel(property.assetType)} · {property.areaSqm.toLocaleString('de-CH')} m² {reason} ) }