- {#each [] as _song, i}
+ {#each [] as _track, i}
diff --git a/src/lib/components/groove/SongListing.svelte b/src/lib/components/groove/TrackListing.svelte
similarity index 66%
rename from src/lib/components/groove/SongListing.svelte
rename to src/lib/components/groove/TrackListing.svelte
index 822031d..ebb3864 100644
--- a/src/lib/components/groove/SongListing.svelte
+++ b/src/lib/components/groove/TrackListing.svelte
@@ -4,19 +4,19 @@
import { getPlayerState } from '$lib/player.svelte';
// import { AudioLines } from 'lucide-svelte';
- import type { Song } from '$lib/song';
import { AudioLines } from 'lucide-svelte';
- import type { SubmitFunction } from '../../../routes/songs/[hash]/$types';
+ import type { SubmitFunction } from '../../../routes/tracks/[hash]/$types';
+ import type { Track } from '$lib/proto/library';
interface Props {
- song: Song;
+ track: Track;
}
- let { song }: Props = $props();
+ let { track }: Props = $props();
const player = getPlayerState();
- const submitPlaySong: SubmitFunction = async () => {
+ const submitPlayTrack: SubmitFunction = async () => {
return async ({ update, result }) => {
await update({
invalidateAll: false
@@ -34,27 +34,27 @@