import type { Opportunity } from "../../domain/types"; import { Badge, Button } from "../ui"; import { ProductMatchDetails } from "./ProductMatchDetails"; type Props = { opportunity: Opportunity; onClose: () => void; onAccept?: (opportunity: Opportunity) => void; onComplete?: (opportunity: Opportunity) => void; busy?: boolean; }; export function OpportunityDetailDrawer({ opportunity, onClose, onAccept, onComplete, busy = false }: Props) { const pending = (opportunity.review_state || "pending") === "pending"; const accepted = opportunity.status === "accepted" || Boolean(opportunity.contact_id); return ( ); }