import { Zap, ExternalLink, Gauge } from 'lucide-react' import { useTranslation } from 'react-i18next' import { getBgColorClass } from '@/lib/colors' import { cn } from '@/lib/utils' import { Button } from '@/components/ui/button' import { CopyButton } from '@/components/copy-button' import { StatusBadge } from '@/components/status-badge' import { getLatencyColorClass, openExternalSpeedTest, } from '@/features/dashboard/lib/api-info' import type { ApiInfoItem, PingStatus } from '@/features/dashboard/types' interface ApiInfoItemProps { item: ApiInfoItem status: PingStatus onTest: (url: string) => void } export function ApiInfoItemComponent(props: ApiInfoItemProps) { const { t } = useTranslation() const item = props.item const status = props.status return (