import { GitHubIcon } from "@chopin/icons"; import { LocalLoginShell } from "./local-login-shell"; export function HostedLogin() { let href = githubLoginHref(location.pathname, location.search, location.hash); return (

Sign in with GitHub to open your projects and documents.

Continue with GitHub
); } export function githubLoginHref(pathname: string, search = "", hash = ""): string { let parameters = new URLSearchParams({ return_to: `${pathname}${search}${hash}` }); return `/auth/github?${parameters}`; }