MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / DocsLink

Function DocsLink

packages/react/src/multiplayer/shell.tsx:150–167  ·  view source on GitHub ↗

External link to the documentation. Lives in the sidebar footer (always * visible, outside the scrollable nav) so docs are reachable from inside the * app, not only the marketing site.

(props: { href: string; onNavigate?: () => void })

Source from the content-addressed store, hash-verified

148 * visible, outside the scrollable nav) so docs are reachable from inside the
149 * app, not only the marketing site. */
150function DocsLink(props: { href: string; onNavigate?: () => void }) {
151 return (
152 <a
153 href={props.href}
154 target="_blank"
155 rel="noopener noreferrer"
156 onClick={() => {
157 trackEvent("docs_opened", { surface: "sidebar" });
158 props.onNavigate?.();
159 }}
160 className="group flex items-center gap-2.5 rounded-md px-2.5 py-1.5 text-sm text-sidebar-foreground transition-colors hover:bg-sidebar-active/60 hover:text-foreground"
161 >
162 <BookOpen className="size-4 shrink-0" />
163 <span className="flex-1">Docs</span>
164 <ExternalLink className="size-3 shrink-0 text-muted-foreground opacity-0 transition-opacity group-hover:opacity-100" />
165 </a>
166 );
167}
168
169function CommandsButton(props: { onOpen: () => void }) {
170 return (

Callers

nothing calls this directly

Calls 1

trackEventFunction · 0.90

Tested by

no test coverage detected