+ {/* Debug info */}
+
+ Top played items loaded: {displayCount} (Mock Data)
+
+
+ {/* Content */}
+
+ {displayCount === 0 ? (
+
+
+
Loading top played songs...
+
Please wait while top played data is being loaded
-
- {item.count} play{item.count !== 1 ? 's' : ''}
-
+ ) : displayItems.length === 0 ? (
+
+
+
No top played songs
+
Play some songs to see the top played list
+
+ ) : (
+
+ {displayItems.map((item, index) => (
+
+
+
+ {index + 1})
+
+
+
+
+
+ {item.title} ({item.count})
+
+
+ {item.artist}
+
+
+
+ ))}
+
+ {/* Load more button */}
+ {displayHasMore && (
+
+
+ Load More
+
+
+ )}
+
+ )}
+
+
+ {/* Stats */}
+ {displayItems.length > 0 && (
+
+ Showing {displayItems.length} item{displayItems.length !== 1 ? 's' : ''}
+ {displayHasMore && ` • Click "Load More" to see more`}
)}
- />
+