({ app, agent, workspace })
| 170 | }; |
| 171 | |
| 172 | const 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 | }; |
nothing calls this directly
no test coverage detected