import { useNostrEvents } from "nostr-react"; import KIND20Card from "./KIND20Card"; import { getImageUrl } from "@/utils/utils"; import { useState, useRef } from "react"; import { Button } from "@/components/ui/button"; const GlobalFeed: React.FC = () => { const now = useRef(new Date()); const [limit, setLimit] = useState(20); const { events, isLoading } = useNostrEvents({ filter: { limit: limit, kinds: [20], }, }); const loadMore = () => { setLimit(prevLimit => prevLimit + 20); }; return ( <>