handle conditional item card expansion

This commit is contained in:
jeffvli
2025-11-19 23:13:40 -08:00
parent c25c339feb
commit 82e1ce4d7a
5 changed files with 19 additions and 2 deletions
@@ -22,6 +22,7 @@ import { Play } from '/@/shared/types/types';
interface ItemCardControlsProps {
controls?: ItemControls;
enableExpansion?: boolean;
internalState?: ItemListStateActions;
item: Album | AlbumArtist | Artist | Playlist | Song | undefined;
itemType: LibraryItem;
@@ -51,6 +52,7 @@ const containerProps = {
export const ItemCardControls = ({
controls,
enableExpansion,
internalState,
item,
itemType,
@@ -198,7 +200,7 @@ export const ItemCardControls = ({
}}
/>
)}
{controls?.onExpand && (
{controls?.onExpand && enableExpansion && (
<SecondaryButton
className={styles.expand}
icon="arrowDownS"