import { jsx as _jsx } from "react/jsx-runtime";
import { useEditContext } from "./client/editContext";
import { ItemLanguageVersion } from "./menubar/ItemLanguageVersion";
/**
 * Titlebar content for workspaces - renders inline within GlobalMenuBar
 * Contains editor-specific titlebar content. Shared chrome is owned by
 * GlobalMenuBar.
 */
export function Titlebar() {
    const editContext = useEditContext();
    if (!editContext?.workspace)
        return null;
    return (_jsx("div", { className: "flex h-full max-h-full min-h-0 min-w-0 flex-1 items-center overflow-hidden", "data-testid": "editor-titlebar", children: _jsx(ItemLanguageVersion, {}) }));
}
//# sourceMappingURL=Titlebar.js.map