Download apps/vis/web/src/components/subagents/SubagentsTab.tsx from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 737 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vis/web/src/components/subagents/SubagentsTab.tsx
- Command line
-
hf download hf://SaylorTwift/kimi-code/apps/vis/web/src/components/subagents/SubagentsTab.tsx
-
curl -L -o SubagentsTab.tsx https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vis/web/src/components/subagents/SubagentsTab.tsx
737 Bytes
| import { useAgentTree } from '../../hooks/useSubagents'; | |
| import { SubagentTree } from './SubagentTree'; | |
| interface SubagentsTabProps { | |
| sessionId: string; | |
| } | |
| export function SubagentsTab({ sessionId }: SubagentsTabProps) { | |
| const { data, isLoading, error } = useAgentTree(sessionId); | |
| if (isLoading) { | |
| return <div className="p-6 font-mono text-[12px] text-fg-3">loading agents…</div>; | |
| } | |
| if (error) { | |
| return ( | |
| <div className="p-6 font-mono text-[12px] text-[var(--color-sev-error)]"> | |
| {(error as Error).message} | |
| </div> | |
| ); | |
| } | |
| if (!data) return null; | |
| return ( | |
| <div className="min-h-0 flex-1 overflow-y-auto"> | |
| <SubagentTree tree={data.tree} sessionId={sessionId} /> | |
| </div> | |
| ); | |
| } | |