feat: sync relay sets
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { useRelaySettings } from '@/providers/RelaySettingsProvider'
|
||||
import { useFeed } from '@/providers/FeedProvider'
|
||||
import client from '@/services/client.service'
|
||||
import { TProfile } from '@/types'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { useFetchRelayInfos } from './useFetchRelayInfos'
|
||||
|
||||
export function useSearchProfiles(search: string, limit: number) {
|
||||
const { searchableRelayUrls } = useRelaySettings()
|
||||
const { relayUrls } = useFeed()
|
||||
const { searchableRelayUrls } = useFetchRelayInfos(relayUrls)
|
||||
const [isFetching, setIsFetching] = useState(true)
|
||||
const [error, setError] = useState<Error | null>(null)
|
||||
const [profiles, setProfiles] = useState<TProfile[]>([])
|
||||
|
||||
Reference in New Issue
Block a user