({ ...other }: ContainerProps)
| 126 | }; |
| 127 | |
| 128 | export const Header = ({ ...other }: ContainerProps) => { |
| 129 | const [opened, { toggle }] = useDisclosure(false); |
| 130 | |
| 131 | return ( |
| 132 | <> |
| 133 | <Box component="header" className={classes.header}> |
| 134 | <Container className={classes.inner} {...other}> |
| 135 | <Link to="/" prefetch="intent" aria-label="Fontsource home"> |
| 136 | <LogoText height={31} isHeader /> |
| 137 | </Link> |
| 138 | <Box className={classes.links} visibleFrom="sm"> |
| 139 | <Tooltip.Group openDelay={600} closeDelay={100}> |
| 140 | <Group gap="md" justify="right"> |
| 141 | <HeaderNavLink label="Fonts" to="/" /> |
| 142 | <HeaderNavLink label="Documentation" to="/docs" /> |
| 143 | |
| 144 | <HeaderNavLink label="Tools" to="/tools" /> |
| 145 | |
| 146 | <ThemeButton /> |
| 147 | <Icon |
| 148 | label="GitHub" |
| 149 | href="https://github.com/fontsource/fontsource" |
| 150 | icon={<IconGithub />} |
| 151 | /> |
| 152 | <Icon label="Discord" href="/discord" icon={<IconDiscord />} /> |
| 153 | </Group> |
| 154 | </Tooltip.Group> |
| 155 | </Box> |
| 156 | <Burger |
| 157 | opened={opened} |
| 158 | onClick={toggle} |
| 159 | hiddenFrom="sm" |
| 160 | size="sm" |
| 161 | aria-label={opened ? 'Close navigation' : 'Open navigation'} |
| 162 | /> |
| 163 | </Container> |
| 164 | </Box> |
| 165 | {opened && <MobileHeader toggle={toggle} />} |
| 166 | </> |
| 167 | ); |
| 168 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected