import React, { useState } from "react" import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable" import { AiChat } from "@/features/ai-chat/components/ai-chat" import { ResourcesPanel } from "@/features/resources" import { cn } from "@/lib/utils" import { AISuggestionsPanel } from "./ai-suggestions/ai-suggestions-panel" import { AudioMixerView } from "./audio-mixer-view" import { TimelineContent } from "./timeline-content" import { TimelineWorkspaceTabs, WorkspaceView } from "./timeline-workspace-tabs" interface TimelineProps { className?: string style?: React.CSSProperties } /** * Timeline component that displays the main timeline interface with resources, content, and AI chat panels. * * @param className Optional additional class names for the root element. * @param style Optional inline styles for the root element. */ export function Timeline({ className, style }: TimelineProps = {}) { const [activeView, setActiveView] = useState("timeline") return ( {/* Средняя панель (основная часть) */}
{/* Вкладки для переключения видов */}
{/* Основная часть - Timeline контент или Audio Mixer */}
{activeView === "timeline" ? : }
) }