import { ActionButton, Image, Link, Stack, TooltipHost, useTheme, } from '@fluentui/react' import { useContext, type FC } from 'react' import { classes } from './styles' import { Container } from '../comps/container' import { ColorSchemeContext } from '../utils/theme/theme-context' const Header: FC = ({}) => { const theme = useTheme() const links = [ { text: 'GitHub', href: 'https://github.com/muzam1l/mooz', }, { text: 'muzam1l', href: 'https://muzam1l.com', }, ] const { setColorScheme, colorScheme } = useContext(ColorSchemeContext) return (
Mooz
{links.map(({ text, href }) => ( ))} { setColorScheme(colorScheme === 'dark' ? 'light' : 'dark') }} ariaLabel="Toggle color scheme" />
) } export default Header