Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
🔃 refactor: `AgentFooter` to conditionally render buttons based on `activePanel` (#7306)
matt burnett621fa6e1aa23
diff --git a/client/src/components/SidePanel/Agents/AgentFooter.tsx b/client/src/components/SidePanel/Agents/AgentFooter.tsxindex 062f81d253..75f10a3851 100644--- a/client/src/components/SidePanel/Agents/AgentFooter.tsx+++ b/client/src/components/SidePanel/Agents/AgentFooter.tsx@@ -50,10 +50,12 @@ export default function AgentFooter({return localize('com_ui_create');};+ const showButtons = activePanel === Panel.builder;+return (<div className="mx-1 mb-1 flex w-full flex-col gap-2">- {activePanel !== Panel.advanced && <AdvancedButton setActivePanel={setActivePanel} />}- {user?.role === SystemRoles.ADMIN && <AdminSettings />}+ {showButtons && <AdvancedButton setActivePanel={setActivePanel} />}+ {user?.role === SystemRoles.ADMIN && showButtons && <AdminSettings />}{/* Context Button */}<div className="flex items-center justify-end gap-2"><DeleteButton@@ -63,13 +65,13 @@ export default function AgentFooter({/>{(agent?.author === user?.id || user?.role === SystemRoles.ADMIN) &&hasAccessToShareAgents && (- <ShareAgent- agent_id={agent_id}- agentName={agent?.name ?? ''}- projectIds={agent?.projectIds ?? []}- isCollaborative={agent?.isCollaborative}- />- )}+ <ShareAgent+ agent_id={agent_id}+ agentName={agent?.name ?? ''}+ projectIds={agent?.projectIds ?? []}+ isCollaborative={agent?.isCollaborative}+ />+ )}{agent && agent.author === user?.id && <DuplicateAgent agent_id={agent_id} />}{/* Submit Button */}<button