({ label, to, toggle }: HeaderNavLinkProps)
| 54 | } |
| 55 | |
| 56 | const 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 | |
| 73 | const MobileExternalIcon = ({ icon, label, href }: IconProps) => { |
| 74 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected