You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
371 B
13 lines
371 B
import { simplifyUrl } from '@/lib/url' |
|
|
|
export const ACTIVE_RELAYS_MAX_ICONS = 14 |
|
|
|
export function activeRelayRowMuted(connected: boolean) { |
|
return !connected |
|
} |
|
|
|
export function activeRelayRowTitle(url: string, connected: boolean, t: (k: string) => string) { |
|
const base = simplifyUrl(url) |
|
if (!connected) return `${base} — ${t('Not connected')}` |
|
return base |
|
}
|
|
|