"use client"; import { useEditorStore } from "../store/editor-zustand"; function StudioEditor() { const openTabs = useEditorStore((s: any) => s.openTabs); const activeTabId = useEditorStore((s: any) => s.activeTabId); const setActiveTab = useEditorStore((s: any) => s.setActiveTab); const closeTab = useEditorStore((s: any) => s.closeTab); // Find active file const activeFile = openTabs.find((f: any) => f.id === activeTabId); return (