import { IconBrandSpeedtest } from '@tabler/icons-solidjs' import { createMemo, Show } from 'solid-js' import { twMerge } from 'tailwind-merge' import { Button, Latency } from '~/components' import { filterSpecialProxyType, formatProxyType } from '~/helpers' import { useProxies } from '~/signals' export const ProxyNodeCard = (props: { proxyName: string isSelected?: boolean onClick?: () => void }) => { const { proxyLatencyTest, proxyLatencyTestingMap } = useProxies() const { proxyName, isSelected, onClick } = props const { proxyNodeMap } = useProxies() const proxyNode = createMemo(() => proxyNodeMap()[proxyName]) const specialType = () => filterSpecialProxyType(proxyNode()?.type) ? proxyNode()?.xudp ? 'xudp' : proxyNode()?.udp ? 'udp' : null : null return (