import { BarChart3, Check, Copy, Edit, Loader2, Play, TestTube2, Trash2, RotateCcw, } from "lucide-react"; import { useTranslation } from "react-i18next"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; interface ProviderActionsProps { isCurrent: boolean; isTesting?: boolean; onSwitch: () => void; onEdit: () => void; onDuplicate: () => void; onTest?: () => void; onConfigureUsage: () => void; onDelete: () => void; onResetCircuitBreaker?: () => void; isProxyTarget?: boolean; consecutiveFailures?: number; } export function ProviderActions({ isCurrent, isTesting, onSwitch, onEdit, onDuplicate, onTest, onConfigureUsage, onDelete, onResetCircuitBreaker, isProxyTarget, consecutiveFailures = 0, }: ProviderActionsProps) { const { t } = useTranslation(); const iconButtonClass = "h-8 w-8 p-1"; return (