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

Function ExternalAppMenuItem

site/src/pages/TaskPage/TaskApps.tsx:166–180  ·  view source on GitHub ↗
({ app, workspace })

Source from the content-addressed store, hash-verified

164 app: WorkspaceAppWithAgent;
165 workspace: Workspace;
166}> = ({ app, workspace }) => {
167 const link = useAppLink(app, {
168 agent: app.agent,
169 workspace,
170 });
171
172 return (
173 <DropdownMenuItem asChild>
174 <RouterLink to={link.href}>
175 {app.icon ? <ExternalImage src={app.icon} /> : <LayoutGridIcon />}
176 {link.label}
177 </RouterLink>
178 </DropdownMenuItem>
179 );
180};
181
182type TaskAppTabProps = {
183 workspace: Workspace;

Callers

nothing calls this directly

Calls 1

useAppLinkFunction · 0.90

Tested by

no test coverage detected