feat: explore

This commit is contained in:
codytseng
2025-09-07 22:23:01 +08:00
parent f2bb65acf0
commit ace4e94071
11 changed files with 240 additions and 233 deletions

View File

@@ -1,10 +1,10 @@
import relayInfoService from '@/services/relay-info.service'
import { TNip66RelayInfo } from '@/types'
import { TRelayInfo } from '@/types'
import { useEffect, useState } from 'react'
export function useFetchRelayInfo(url?: string) {
const [isFetching, setIsFetching] = useState(true)
const [relayInfo, setRelayInfo] = useState<TNip66RelayInfo | undefined>(undefined)
const [relayInfo, setRelayInfo] = useState<TRelayInfo | undefined>(undefined)
useEffect(() => {
if (!url) return