import { navigateWithAgentChatViewTransition } from "@agent-native/core/client/agent-chat"; import { useT } from "@agent-native/core/client/i18n"; import { focusAgentChat } from "@agent-native/toolkit/app/chat"; import { AgentSidebar } from "@agent-native/toolkit/app/chat"; import { type ReactNode } from "react"; import { useNavigate } from "react-router"; import { chatThreadPath } from "@/lib/chat-paths"; import { TAB_ID } from "@/lib/tab-id"; interface AgentInspectorProps { children: ReactNode; chatHomeHandoffActive: boolean; chatHomeHandoffPending: boolean; } /** Contextual inspector shell used on secondary chat routes. */ export function AgentInspector({ children, chatHomeHandoffActive, chatHomeHandoffPending, }: AgentInspectorProps) { const navigate = useNavigate(); const t = useT(); function openAskAgentFullscreen(threadId?: string) { focusAgentChat(); navigateWithAgentChatViewTransition(navigate, chatThreadPath(threadId)); } return ( {children} ); }