MCPcopy Create free account
hub / github.com/coder/coder / countAgents

Function countAgents

site/src/modules/resources/Resources.tsx:7–9  ·  view source on GitHub ↗
(resource: WorkspaceResource)

Source from the content-addressed store, hash-verified

5import { ResourceCard } from "./ResourceCard";
6
7const countAgents = (resource: WorkspaceResource) => {
8 return resource.agents ? resource.agents.length : 0;
9};
10
11interface ResourcesProps {
12 resources: WorkspaceResource[];

Callers 1

ResourcesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected