({ app, workspace, agent })
| 796 | }; |
| 797 | |
| 798 | const IconAppLink: FC<IconAppLinkProps> = ({ app, workspace, agent }) => { |
| 799 | const link = useAppLink(app, { |
| 800 | workspace, |
| 801 | agent, |
| 802 | }); |
| 803 | |
| 804 | return ( |
| 805 | <BaseIconLink |
| 806 | key={app.id} |
| 807 | label={`Open ${link.label}`} |
| 808 | href={link.href} |
| 809 | onClick={link.onClick} |
| 810 | > |
| 811 | <ExternalImage src={app.icon ?? "/icon/widgets.svg"} /> |
| 812 | </BaseIconLink> |
| 813 | ); |
| 814 | }; |
| 815 | |
| 816 | type VSCodeIconLinkProps = PropsWithChildren<{ |
| 817 | variant: "vscode" | "vscode-insiders"; |
nothing calls this directly
no test coverage detected