MCPcopy Index your code
hub / github.com/coder/coder / AppLink

Function AppLink

site/src/pages/WorkspacePage/AppStatuses.tsx:172–188  ·  view source on GitHub ↗
({ app, agent, workspace })

Source from the content-addressed store, hash-verified

170};
171
172const AppLink: FC<AppLinkProps> = ({ app, agent, workspace }) => {
173 const link = useAppLink(app, { agent, workspace });
174
175 return (
176 <Button asChild variant="outline" size="sm">
177 <a
178 href={link.href}
179 onClick={link.onClick}
180 target="_blank"
181 rel="noreferrer"
182 >
183 {app.icon ? <ExternalImage src={app.icon} /> : <LayoutGridIcon />}
184 {link.label}
185 </a>
186 </Button>
187 );
188};

Callers

nothing calls this directly

Calls 1

useAppLinkFunction · 0.90

Tested by

no test coverage detected