MCPcopy Index your code
hub / github.com/coder/coder / IconAppLink

Function IconAppLink

site/src/pages/WorkspacesPage/WorkspacesTable.tsx:798–814  ·  view source on GitHub ↗
({ app, workspace, agent })

Source from the content-addressed store, hash-verified

796};
797
798const 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
816type VSCodeIconLinkProps = PropsWithChildren<{
817 variant: "vscode" | "vscode-insiders";

Callers

nothing calls this directly

Calls 1

useAppLinkFunction · 0.90

Tested by

no test coverage detected