import { useRef } from 'preact/hooks'; import Timeline from '../components/timeline'; const LIMIT = 20; function Bookmarks() { const bookmarksIterator = useRef(); async function fetchBookmarks(firstLoad) { if (firstLoad || !bookmarksIterator.current) { bookmarksIterator.current = masto.v1.bookmarks.list({ limit: LIMIT }); } return await bookmarksIterator.current.next(); } return ( ); } export default Bookmarks;