import React from 'react'; import { UserAvatar } from '../ui/UserAvatar'; import { Avatar } from '../leads/leadUi'; import { CollapsibleText, ProbabilityBar, STAGE_COLORS, StageBadge, formatDate, formatDays, relativeDays, } from './opportunityUi'; import { contactFullName, formatEuro, opportunityVolume, type Opportunity, } from '../../types'; interface OpportunityGridProps { opportunities: Opportunity[]; onEdit: (opportunity: Opportunity) => void; onDelete: (opportunity: Opportunity) => void; /** Kopie fuer einen anderen Berater anlegen. */ onCopy: (opportunity: Opportunity) => void; } const Metric: React.FC<{ label: string; value: string; className?: string }> = ({ label, value, className = '', }) => (
{label}
{value}
{opportunity.title}
{opportunity.company || 'Ohne Firma'}
{/* Fuer wen das Projekt laeuft - hervorgehoben, weil es die Kachel sonst nicht hergibt. */} {opportunity.consultant && ({opportunity.consultant}
)}Letzte Interaktion
{formatDate(opportunity.last_interaction_at)} {interaction && ({interaction})}
{opportunity.last_interaction_note && ({opportunity.last_interaction_note}
)}{opportunity.next_step}