"use client"; interface WhatsAppInstanceCardProps { instance: string; status: "connected" | "disconnected" | "error"; error?: string; onGenerateQR?: () => void; onDisconnect?: () => void; } export default function WhatsAppInstanceCard({ instance, status, error, onGenerateQR, onDisconnect, }: WhatsAppInstanceCardProps) { const statusConfig = { connected: { badge: "Connected", color: "bg-green-500", textColor: "text-green-400", }, disconnected: { badge: "Disconnected", color: "bg-red-500", textColor: "text-red-400", }, error: { badge: "Error", color: "bg-yellow-500", textColor: "text-yellow-400", }, }; const config = statusConfig[status]; return (