summaryrefslogtreecommitdiff
path: root/apps/web/src/stores
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/stores')
-rw-r--r--apps/web/src/stores/timeline-store.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/web/src/stores/timeline-store.ts b/apps/web/src/stores/timeline-store.ts
index 04b2f6fb..73628497 100644
--- a/apps/web/src/stores/timeline-store.ts
+++ b/apps/web/src/stores/timeline-store.ts
@@ -1,4 +1,5 @@
import { create } from "zustand";
+import type { TrackType } from "@/types/timeline";
// Helper function to manage clip naming with suffixes
const getClipNameWithSuffix = (
@@ -28,7 +29,7 @@ export interface TimelineClip {
export interface TimelineTrack {
id: string;
name: string;
- type: "video" | "audio" | "effects";
+ type: TrackType;
clips: TimelineClip[];
muted?: boolean;
}
@@ -67,7 +68,7 @@ interface TimelineStore {
endDrag: () => void;
// Actions
- addTrack: (type: "video" | "audio" | "effects") => string;
+ addTrack: (type: TrackType) => string;
removeTrack: (trackId: string) => void;
addClipToTrack: (trackId: string, clip: Omit<TimelineClip, "id">) => void;
removeClipFromTrack: (trackId: string, clipId: string) => void;