MCPcopy Create free account
hub / github.com/winfunc/opcode / renderIcon

Function renderIcon

src/components/AgentRunOutputViewer.tsx:511–514  ·  view source on GitHub ↗
(iconName: string)

Source from the content-addressed store, hash-verified

509 }, [messages]);
510
511 const renderIcon = (iconName: string) => {
512 const Icon = AGENT_ICONS[iconName as keyof typeof AGENT_ICONS] || Bot;
513 return <Icon className="h-5 w-5" />;
514 };
515
516 const formatDuration = (ms?: number) => {
517 if (!ms) return "N/A";

Callers 1

AgentRunOutputViewerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected