+
+
+
})
{
+ (e.currentTarget as HTMLImageElement).style.visibility = 'hidden';
+ }}
+ />
+
+
+
Album
+
{crumbs[crumbs.length - 1]}
+
+ {crumbs[crumbs.length - 2] ?? ''} · {album.length} songs
+
+
+
+
+
+ {album.map((t, i) => (
+
+ ))}
+
+
+ )}
+
+ {/* Artist view — album cards grouped by discography type */}
+ {disco && !album && (
+
+
{disco.artist}
+ {TYPE_ORDER.filter((type) => folders.some((f) => (disco.albums[f] ?? 'Other') === type)).map((type) => {
+ const inType = folders.filter((f) => (disco.albums[f] ?? 'Other') === type);
+ return (
+
+
+ {type === 'Studio' ? 'Studio Albums' : type}
+
+
+ {inType.map((f) => (
+ 0} />
+ ))}
+
+
+ );
+ })}
+
+ )}
+
+ {/* Grid view — child folders as cards */}
+ {!album && !disco && cwd && !loading && (
+