import { jsx as _jsx } from "react/jsx-runtime";
import { SquarePen } from "lucide-react";
import { SimpleIconButton } from "../editor/ui/SimpleIconButton";
import { useEditContext } from "../editor/client/editContext";
/**
 * AgentsTitlebar - Titlebar content for the Agents workspace.
 * Shows desktop actions for the Agents workspace.
 */
export function AgentsTitlebar() {
    const editContext = useEditContext();
    if (!editContext?.workspace)
        return null;
    if (editContext.isMobile)
        return null;
    const { showAgentsWorkspaceEditor, setShowAgentsWorkspaceEditor } = editContext;
    return (_jsx("div", { className: "flex w-full items-center justify-end pr-2", children: _jsx(SimpleIconButton, { icon: _jsx(SquarePen, { className: "h-5 w-5", strokeWidth: 1 }), label: showAgentsWorkspaceEditor ? "Hide Editor" : "Show Editor", size: "large", "data-testid": "editor-panel-toggle", selected: showAgentsWorkspaceEditor, onClick: () => setShowAgentsWorkspaceEditor(!showAgentsWorkspaceEditor) }) }));
}
//# sourceMappingURL=AgentsTitlebar.js.map