import { Box, Card, Chip, Divider, IconButton, Typography } from '@mui/material' import { X } from 'lucide-react' import { MatchScoreDisplay } from './MatchScoreDisplay' import type { MatchCardViewModel } from './MatchCardViewModel' const RESULT_TYPE_META: Record = { VERIFIED_PORTFOLIO: { label: 'Verified', color: '#152642' }, MAISON_WORK: { label: 'Maison Work', color: '#0369a1' }, FUTURE_AVAILABILITY: { label: 'Signal', color: '#7c3aed' }, } interface Props { vm: MatchCardViewModel onRemove?: () => void } export function MatchCardCompareMini({ vm, onRemove }: Props) { const rt = RESULT_TYPE_META[vm.resultType] ?? { label: vm.resultType, color: '#64748b' } const topReason = vm.reasons[0] return ( {onRemove && ( )} {vm.title} {vm.locationLabel} {topReason && ( <> {topReason.explanation} )} ) }