import { Link, NavLink as RemixNavLink } from "@remix-run/react"; import clsx from "clsx"; import ExtLink from "~/components/ExtLink"; import type { ReactNode } from "react"; import React from "react"; import { LinkButton } from "~/components/Button"; import { GitHubIcon } from "../Icons"; import KickstarterIcon from "~/assets/kickstarter-icon.svg"; type LinkProps = { to: string; children: ReactNode; }; type ButtonProps = { onClick: (event: React.MouseEvent) => void; children: ReactNode; }; type NavLinkProps = LinkProps | ButtonProps; const NavLink = (props: NavLinkProps) => { const className = "font-display shrink-0 whitespace-nowrap rounded-md first:pl-0 py-2 px-3 text-sm text-slate-700 hover:text-blue-700/100 active:text-blue-900/100"; if ("to" in props) { const { to, children } = props; if (to.startsWith("http")) { return ( {children} ); } else { return ( clsx(className, isActive ? "" : "")} > {children} ); } } const { onClick, children } = props; return ( ); }; export default function LandingNavbar({ githubStars }: { githubStars: number | null }) { const formatNumber = (number: number) => { return new Intl.NumberFormat("en", { notation: "compact", compactDisplay: "short", maximumFractionDigits: 1, // Adjust for desired decimal places }).format(number); }; return (
Documentation Contact us
( )} to="https://shiphelp.jetkvm.com" text="Track Kickstarter Reward" />
); }