import { useGleanClick } from "../../telemetry/glean-context"; import { AuthContainer } from "../../ui/molecules/auth-container"; import { usePlusUrl } from "../utils"; import "./login-banner.scss"; export function PlusLoginBanner({ children, className = "login-banner", gleanPrefix, }: { children: React.ReactNode; className?: string; gleanPrefix: string; }) { const href = usePlusUrl(); const gleanClick = useGleanClick(); return (
{children}{" "} Upgrade to{" "} gleanClick(`${gleanPrefix}: banner-link`)} > MDN Plus {" "} for free.
); }