import { createMemo } from 'solid-js' import { twMerge } from 'tailwind-merge' import Delay from '~/components/Delay' import { useProxies } from '~/signals/proxies' export default (props: { proxyName: string isSelected?: boolean onClick?: () => void }) => { const { proxyName, isSelected, onClick } = props const { proxyNodeMap } = useProxies() const proxyNode = createMemo(() => proxyNodeMap()[proxyName]) const formatProxyType = (type = '') => { const t = type.toLowerCase() if (t.includes('shadowsocks')) { return t.replace('shadowsocks', 'ss') } return t } return (