This commit is contained in:
ct
2025-06-16 23:16:10 +08:00
parent 4220709b57
commit ef2871a983
6 changed files with 142 additions and 19 deletions

View File

@@ -1,17 +1,19 @@
import axiosInstance from '@/plugins/axios-plugin';
import { mountStoreDevtool } from 'simple-zustand-devtools';
import { toast } from 'sonner';
import { route } from 'ziggy-js';
import { create } from 'zustand';
import { devtools } from 'zustand/middleware';
const useVideoEditorStore = create(
devtools((set, get) => ({
videoIsPlaying: false,
selectedTextElement: null,
setVideoIsPlaying: (isPlaying) => {
set({ videoIsPlaying: isPlaying });
},
setSelectedTextElement: (element) => {
set({ selectedTextElement: element });
},
})),
{