summaryrefslogtreecommitdiff
path: root/apps/web/src/stores/properties-store.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/stores/properties-store.ts')
-rw-r--r--apps/web/src/stores/properties-store.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/web/src/stores/properties-store.ts b/apps/web/src/stores/properties-store.ts
new file mode 100644
index 00000000..f45f176d
--- /dev/null
+++ b/apps/web/src/stores/properties-store.ts
@@ -0,0 +1,19 @@
+import { create } from "zustand";
+
+interface ClipEffectsTarget {
+ elementId: string;
+ trackId: string;
+}
+
+interface PropertiesState {
+ clipEffectsTarget: ClipEffectsTarget | null;
+ openClipEffects: ({ elementId, trackId }: ClipEffectsTarget) => void;
+ closeClipEffects: () => void;
+}
+
+export const usePropertiesStore = create<PropertiesState>()((set) => ({
+ clipEffectsTarget: null,
+ openClipEffects: ({ elementId, trackId }) =>
+ set({ clipEffectsTarget: { elementId, trackId } }),
+ closeClipEffects: () => set({ clipEffectsTarget: null }),
+}));