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 })
| 148 | * visible, outside the scrollable nav) so docs are reachable from inside the |
| 149 | * app, not only the marketing site. */ |
| 150 | function 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 | |
| 169 | function CommandsButton(props: { onOpen: () => void }) { |
| 170 | return ( |
nothing calls this directly
no test coverage detected