import type { ContractSummary, ContractStatus } from "../../lib/api"; interface WorkflowContractCardProps { contract: ContractSummary; onClick: () => void; onDragStart: (e: React.DragEvent) => void; } const statusConfig: Record = { active: { label: "Active", color: "text-green-400" }, completed: { label: "Done", color: "text-blue-400" }, archived: { label: "Archived", color: "text-[#555]" }, }; export function WorkflowContractCard({ contract, onClick, onDragStart, }: WorkflowContractCardProps) { const status = statusConfig[contract.status] || statusConfig.active; return (
{/* Name */}
{contract.name}
{/* Status and counts row */}
{status.label}
{contract.fileCount} files {contract.taskCount} tasks
{/* Description preview if exists */} {contract.description && (
{contract.description}
)}
); }