import React, { useCallback, useEffect, useRef, useState } from 'react'
import ArtworkGallery from '../../artwork/ArtworkGallery'
function FavSkeleton() {
return (
{isOwner ? 'Your Favourites' : 'Favourites'}
{loading && items.length === 0 && (
{Array.from({ length: 4 }).map((_, i) => )}
)}
{error && items.length === 0 && (
Favourites could not be loaded.
{onRetry ?
: null}
)}
{!loading && !error && items.length === 0 ? (
No favourites yet
Artworks added to favourites will appear here.
) : (
<>
({
loading: index < 8 ? 'eager' : 'lazy',
})}
>
{loadingMore && Array.from({ length: 4 }).map((_, i) => )}
{nextCursor && (
)}
{nextCursor && (
)}
>
)}
)
}