import { useSecondaryPage } from '@/PageManager' import { Badge } from '@/components/ui/badge' import { Button } from '@/components/ui/button' import { useFetchRelayList } from '@/hooks' import { toRelay } from '@/lib/link' import { userIdToPubkey } from '@/lib/pubkey' import { simplifyUrl } from '@/lib/url' import { TMailboxRelay } from '@/types' import { ListPlus, Telescope } from 'lucide-react' import { useMemo } from 'react' import { useTranslation } from 'react-i18next' import RelayIcon from '../RelayIcon' import SaveRelayDropdownMenu from '../SaveRelayDropdownMenu' export default function OthersRelayList({ userId }: { userId: string }) { const { t } = useTranslation() const pubkey = useMemo(() => userIdToPubkey(userId), [userId]) const { relayList, isFetching } = useFetchRelayList(pubkey) if (isFetching) { return