import { useRef, useState } from "react"; import { useNostrEvents } from "nostr-react"; import { Skeleton } from "@/components/ui/skeleton"; import { Button } from "@/components/ui/button"; import QuickViewKind20NoteCard from "./QuickViewKind20NoteCard"; import { getImageUrl } from "@/utils/utils"; const GlobalQuickViewFeed: React.FC = () => { const now = useRef(new Date()); const [limit, setLimit] = useState(25); const { events, isLoading } = useNostrEvents({ filter: { limit: limit, kinds: [20], since: Math.floor((now.current.getTime() - 24 * 60 * 60 * 1000) / 1000), // Last 24 hours }, }); const loadMore = () => { setLimit(prevLimit => prevLimit + 25); }; return ( <>