import { useNavigate } from "../lib/navigation"; import type { ReactNode } from "react"; import { HelpLink } from "../../ui/inline-help"; /** A HelpLink to a page inside the app: a plain click navigates without a page load. */ export function InAppHelpLink({ href, className, children, }: { href: string; className?: string | undefined; children: ReactNode; }) { const navigate = useNavigate(); return ( void navigate({ href })} className={className}> {children} ); }