import { Play, Pause, Shuffle, Download, ListPlus } from "lucide-react"; import { cn } from "@/utils/cn"; import type { Album } from "../types"; import type { AlbumSource } from "../types"; const LIDIFY_YELLOW = "#ecb200"; interface AlbumActionBarProps { album: Album; source: AlbumSource; colors: any; onPlayAll: () => void; onShuffle: () => void; onDownloadAlbum: () => void; onAddToPlaylist: () => void; isPendingDownload: boolean; isPlaying?: boolean; isPlayingThisAlbum?: boolean; onPause?: () => void; } export function AlbumActionBar({ album, source, colors, onPlayAll, onShuffle, onDownloadAlbum, onAddToPlaylist, isPendingDownload, isPlaying = false, isPlayingThisAlbum = false, onPause, }: AlbumActionBarProps) { const isOwned = album.owned !== undefined ? album.owned : source === "library"; const showDownload = !isOwned && (album.mbid || album.rgMbid); const showPause = isPlaying && isPlayingThisAlbum; const handlePlayPauseClick = () => { if (showPause && onPause) { onPause(); } else { onPlayAll(); } }; return (