import { Loader2, Pencil, Send, Trash2 } from 'lucide-react' import type { DownloadClient } from '../api/download_clients' export function DownloadClientCard({ client, testing, onDelete, onEdit, onTest, }: { client: DownloadClient testing: boolean onDelete: (client: DownloadClient) => void onEdit: (client: DownloadClient) => void onTest: (id: string) => void }) { return (
{client.name} {client.type} {client.is_default && ( 默认 )} {!client.enabled && ( 已禁用 )}
{client.host} {client.username && ` · ${client.username}`}
) }