"use client"; import { useEffect } from "react"; import "./editor.css"; import { ResizablePanelGroup, ResizablePanel, ResizableHandle, } from "../../components/ui/resizable"; import { MediaPanel } from "../../components/editor/media-panel"; // import { PropertiesPanel } from "../../components/editor/properties-panel"; import { Timeline } from "../../components/editor/timeline"; import { PreviewPanel } from "../../components/editor/preview-panel"; import { EditorHeader } from "@/components/editor-header"; import { usePanelStore } from "@/stores/panel-store"; import { useProjectStore } from "@/stores/project-store"; import { EditorProvider } from "@/components/editor-provider"; import { usePlaybackControls } from "@/hooks/use-playback-controls"; export default function Editor() { const { toolsPanel, previewPanel, propertiesPanel, mainContent, timeline, setToolsPanel, setPreviewPanel, setPropertiesPanel, setMainContent, setTimeline, } = usePanelStore(); const { activeProject, createNewProject } = useProjectStore(); usePlaybackControls(); useEffect(() => { if (!activeProject) { createNewProject("Untitled Project"); } }, [activeProject, createNewProject]); return (
{/* Main content area */} {/* Tools Panel */} {/* Preview Area */} {/* Properties Panel */} {/* */} {/* Timeline */}
); }