import { For } from 'solid-js' import { twMerge } from 'tailwind-merge' import { DELAY } from '~/config/enum' import { useProxies } from '~/signals/proxies' const DelayDots = (p: { delay: number | undefined; selected: boolean }) => { let dotClassName = p.selected ? 'bg-white border-4 border-success' : 'bg-success' if (typeof p.delay !== 'number' || p.delay === DELAY.NOT_CONNECTED) { dotClassName = p.selected ? 'bg-white border-4 border-neutral' : 'bg-neutral' } else if (p.delay > DELAY.HIGH) { dotClassName = p.selected ? 'bg-white border-4 border-error' : 'bg-error' } else if (p.delay > DELAY.MEDIUM) { dotClassName = p.selected ? 'bg-white border-4 border-warning' : 'bg-warning' } return
} export default (props: { proxyNameList: string[]; now?: string }) => { const { proxyNodeMap } = useProxies() return (