MCPcopy Create free account
hub / github.com/fontsource/fontsource / HeaderNavLink

Function HeaderNavLink

website/app/components/layout/Header.tsx:56–71  ·  view source on GitHub ↗
({ label, to, toggle }: HeaderNavLinkProps)

Source from the content-addressed store, hash-verified

54}
55
56const HeaderNavLink = ({ label, to, toggle }: HeaderNavLinkProps) => {
57 return (
58 <Text>
59 <NavLink
60 to={to}
61 prefetch="intent"
62 className={({ isActive }) =>
63 isActive ? cx(classes.link, classes.active) : classes.link
64 }
65 onClick={toggle}
66 >
67 {label}
68 </NavLink>
69 </Text>
70 );
71};
72
73const MobileExternalIcon = ({ icon, label, href }: IconProps) => {
74 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected