import client from '@/services/client.service' import storage from '@/services/local-storage.service' import { TSearchParams } from '@/types' import NormalFeed from '../NormalFeed' import Profile from '../Profile' import { ProfileListBySearch } from '../ProfileListBySearch' import Relay from '../Relay' import RelayConfigurationRequired from '../RelayConfigurationRequired' export default function SearchResult({ searchParams }: { searchParams: TSearchParams | null }) { if (!searchParams) { return null } if (searchParams.type === 'profile') { return } if (searchParams.type === 'profiles') { // Check if search relays are configured if (!storage.hasCustomSearchRelays()) { return (
) } return } if (searchParams.type === 'notes') { // Check if search relays are configured const searchRelays = storage.getSearchRelays() if (searchRelays.length === 0) { return (
) } return ( ) } if (searchParams.type === 'hashtag') { return ( ) } if (searchParams.type === 'nak') { return } return }