({
workspace,
app,
active,
onClick,
})
| 187 | }; |
| 188 | |
| 189 | const 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 | |
| 215 | type TaskTabProps = LinkProps & { |
| 216 | active: boolean; |
nothing calls this directly
no test coverage detected