import { Box, Paper, Typography } from '@mui/material' import { Building2 } from 'lucide-react' import type { Inquiry } from '../../domain/inquiry' import { formatInquiryDate, propertyLabelFromId } from './inquiryUtils' interface InquiryCardProps { inquiry: Inquiry selected: boolean onClick: () => void } export function InquiryCard({ inquiry, selected, onClick }: InquiryCardProps) { const hasUnread = !inquiry.isRead && inquiry.unreadCount > 0 return ( {inquiry.tenantName} {inquiry.tenantCompany ? ` ยท ${inquiry.tenantCompany}` : ''} {hasUnread && ( 9 ? 0.75 : 0, }} > {inquiry.unreadCount} )} {inquiry.subject} {propertyLabelFromId(inquiry.propertyId)} {formatInquiryDate(inquiry.createdAt)} {inquiry.matchScore !== undefined && ( Match {inquiry.matchScore}% )} ) }