'use client'; import { Button } from '@/components/ui/button'; import { cn } from '@/lib/utils'; import { useMitt } from '@/plugins/MittContext'; import useVideoEditorStore from '@/stores/VideoEditorStore'; import { Download, Play, Square, SquarePen } from 'lucide-react'; const EditorControls = ({ className = '', onEditClick = () => {}, isEditActive = false }) => { const { videoIsPlaying } = useVideoEditorStore(); const emitter = useMitt(); const handlePlay = () => { emitter.emit('video-play'); }; const handleReset = () => { emitter.emit('video-reset'); }; const handleDownloadButton = () => { emitter.emit('video-open-download-modal'); }; const handleAIButton = () => { emitter.emit('open-ai-editor-sheet'); }; const togglePlayPause = () => { if (videoIsPlaying) { handleReset(); } else { handlePlay(); } }; return (