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

Function TaskAppTab

site/src/pages/TaskPage/TaskApps.tsx:189–213  ·  view source on GitHub ↗
({
	workspace,
	app,
	active,
	onClick,
})

Source from the content-addressed store, hash-verified

187};
188
189const TaskAppTab: FC<TaskAppTabProps> = ({
190 workspace,
191 app,
192 active,
193 onClick,
194}) => {
195 const link = useAppLink(app, {
196 agent: app.agent,
197 workspace,
198 });
199
200 return (
201 <TaskTab active={active} to={link.href} onClick={onClick}>
202 {app.icon ? <ExternalImage src={app.icon} /> : <LayoutGridIcon />}
203 {link.label}
204 {app.health === "unhealthy" && (
205 <InfoTooltip
206 title="This app is unhealthy."
207 message="The health check failed."
208 type="warning"
209 />
210 )}
211 </TaskTab>
212 );
213};
214
215type TaskTabProps = LinkProps & {
216 active: boolean;

Callers

nothing calls this directly

Calls 1

useAppLinkFunction · 0.90

Tested by

no test coverage detected