refactor: restructure state, routing, and more

This commit is contained in:
talksik
2026-03-18 13:11:29 -07:00
parent 0149450bc4
commit 092d142a56
16 changed files with 218 additions and 482 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
import { create } from "zustand";
import type { StreamParticle } from "@/api/types";
import type { Particle } from "@/api/types";
type PlaybackStatus = "idle" | "playing" | "ended";
interface PlaybackState {
streamId: string | null;
particles: StreamParticle[];
particles: Particle[];
currentIndex: number;
status: PlaybackStatus;
paused: boolean;
@@ -13,7 +13,7 @@ interface PlaybackState {
initStream: (
streamId: string,
particles: StreamParticle[],
particles: Particle[],
startIndex: number,
) => void;
next: () => void;