WIP: global player refactor pt. 2

This commit is contained in:
2026-02-09 23:39:36 -08:00
parent aea41df214
commit f9fe6a2d11
5 changed files with 32 additions and 37 deletions

View File

@@ -2,12 +2,13 @@
import { Play, X } from "@lucide/svelte";
import { Button } from "$lib/components/ui/button";
import { player } from "$lib/player/store.svelte";
import type { Track } from "$lib/player/types";
function onRemove(id: number) {
player.remove(id);
}
function onJump(track: any) {
function onJump(track: Track) {
player.playNext(track);
// Wait, jump usually means play immediately?
// "Jump to track" -> set as current.