mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
0b24974a63
~ stabilize props: move isCurrent check to inside SongItem component
10 lines
189 B
TypeScript
10 lines
189 B
TypeScript
import { Track } from "@/interfaces";
|
|
import queue from "@/stores/queue";
|
|
|
|
export default function createTrackProps(track: Track) {
|
|
return {
|
|
track,
|
|
index: track.index + 1,
|
|
};
|
|
}
|