feat(ui/agents): add /agents/[agent_id] route page

Per-agent landing page. Resolves auth via useAuthorized and passes the
agent_id param to AgentDetail.
This commit is contained in:
Ishaan Jaffer 2026-05-06 15:05:40 -07:00
parent fbe22ea796
commit f990d6a1b7
No known key found for this signature in database

View file

@ -0,0 +1,21 @@
"use client";
/**
* /agents/{agent_id} per-agent landing page.
*
* Shows the agent's identity, system prompt, and sessions list. + New
* Session opens the create dialog and redirects into the three-pane view.
*/
import { use } from "react";
import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
import AgentDetail from "@/app/(dashboard)/agents/components/agent-detail";
interface PageProps {
params: Promise<{ agent_id: string }>;
}
export default function AgentDetailPage({ params }: PageProps) {
const { agent_id } = use(params);
const { accessToken } = useAuthorized();
return <AgentDetail agentId={agent_id} accessToken={accessToken} />;
}