WIP: global player refactor pt. 2
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user