+ {tracks.length === 0 ?
: null}
+ {tracks.map((track, index) => (
+
+
+ {track.title}
+ {track.artist || ''}
+ {formatRelativePlayedAt(track.played_at)}
+
+ ))}
+
+ );
+}
+
+function StatsLibraryHealth({ health }: { health: StatsHealth }) {
+ const totalTracks = health.total_tracks ?? 0;
+ const formatEntries = Object.entries(health.format_breakdown ?? {});
+ const formatTotal = formatEntries.reduce((sum, [, count]) => sum + count, 0) || 1;
+ const formatColors: Record