add context menu to left controls

This commit is contained in:
jeffvli
2025-11-30 01:25:56 -08:00
parent 08e8c65a18
commit 78fcc5c1c7
@@ -164,7 +164,19 @@ export const LeftControls = () => {
{isSongDefined && (
<ActionIcon
icon="ellipsisVertical"
// onClick={(e) => handleGeneralContextMenu(e, [currentSong!])}
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
if (currentSong) {
ContextMenuController.call({
cmd: {
items: [currentSong],
type: LibraryItem.SONG,
},
event: e,
});
}
}}
size="xs"
styles={{
root: {