import { AlertTriangle } from "lucide-react"; import React from "react"; import { cn } from "../../lib/utils"; import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip"; /** Cleanup warnings are not transfer errors: retain the completed lifecycle. */ export function SftpTransferWarning({ warning, compact = false }: { warning?: string; compact?: boolean }) { if (!warning) return null; const content = ( ); return compact ? ( {content} {warning} ) : content; }