import { useQuery } from '@tanstack/react-query'; import { Profile } from '@app/trending/components/profile'; import { NoteSkeleton } from '@shared/notes/skeleton'; import { TitleBar } from '@shared/titleBar'; export function TrendingProfiles() { const { status, data, error } = useQuery(['trending-profiles'], async () => { const res = await fetch('https://api.nostr.band/v0/trending/profiles'); if (!res.ok) { throw new Error('Error'); } return res.json(); }); return (
Failed to fetch
} {status === 'loading' ? (