mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-27 22:54:03 +08:00
16 lines
426 B
TypeScript
16 lines
426 B
TypeScript
|
import { Show, createMemo } from 'solid-js'
|
||
|
import { useProxies } from '~/signals'
|
||
|
|
||
|
export const IPv6Support = (props: { name?: string }) => {
|
||
|
const { proxyIPv6SupportMap } = useProxies()
|
||
|
const support = createMemo(() => proxyIPv6SupportMap()[props.name!] === true)
|
||
|
|
||
|
return (
|
||
|
<Show when={support()}>
|
||
|
<span class="badge badge-sm p-px">
|
||
|
<span class="scale-75">IPv6</span>
|
||
|
</span>
|
||
|
</Show>
|
||
|
)
|
||
|
}
|