mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
13 lines
343 B
TypeScript
13 lines
343 B
TypeScript
import { Track } from "@/interfaces";
|
|
import queue from "@/stores/queue";
|
|
|
|
export default function createTrackProps(track: Track) {
|
|
return {
|
|
track,
|
|
index: track.index + 1,
|
|
isCurrent: queue().currenttrackhash === track.trackhash,
|
|
isCurrentPlaying:
|
|
queue().currenttrackhash === track.trackhash && queue().playing,
|
|
};
|
|
}
|