import React from 'react'
import ActivityCard from './ActivityCard'
function ActivitySkeleton() {
return (
{Array.from({ length: 5 }).map((_, index) => (
))}
)
}
function EmptyState({ isFiltered }) {
return (
No activity yet
{isFiltered ? 'This filter has no recent activity right now.' : 'When creators and members interact around artworks, their activity will appear here.'}
)
}
export default function ActivityFeed({
activities = [],
isLoggedIn = false,
loading = false,
loadingMore = false,
error = null,
sentinelRef,
}) {
if (loading && activities.length === 0) {
return
}
if (!loading && activities.length === 0) {
return
}
return (
{error ? (
{error}
) : null}
{activities.map((activity) => (
))}
{loadingMore ?
: null}
)
}