diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index c8e9b7f..8b5c996 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -149,6 +149,17 @@ const Room: Component = () => { send({ type: "set_playlist_enabled", enabled }); }; + // Reorder an item in the up-next queue. 0-indexed. + const handleMoveQueueItem = (from: number, to: number) => { + if (from === to) return; + send({ type: "move_queue_item", from, to }); + }; + + // Shuffle the up-next queue. Server picks the seed. + const handleShuffleQueue = () => { + send({ type: "shuffle_queue" }); + }; + return (