import React from 'react'; import { Flex, Box, BlockstackIcon, Stack, color, space, BoxProps, ChevronIcon, FlexProps, Fade, } from '@blockstack/ui'; import { Link, LinkProps, Text } from '@components/typography'; import MenuIcon from 'mdi-react/MenuIcon'; import CloseIcon from 'mdi-react/CloseIcon'; import { useMobileMenuState } from '@common/hooks/use-mobile-menu'; import { css } from '@styled-system/css'; import NextLink from 'next/link'; import { ColorModeButton } from '@components/color-mode-button'; import { PAGE_WIDTH } from '@common/constants'; import { border, transition } from '@common/utils'; import { getCapsizeStyles } from '@components/mdx/typography'; import { useTouchable } from '@common/hooks/use-touchable'; import { useRouter } from 'next/router'; const MenuButton = ({ ...rest }: any) => { const { isOpen, handleOpen, handleClose } = useMobileMenuState(); const Icon = isOpen ? CloseIcon : MenuIcon; const handleClick = isOpen ? handleClose : handleOpen; return ( ); }; const HeaderWrapper: React.FC = React.forwardRef((props, ref) => ( )); const nav = [ { label: 'Start building', children: [ { label: 'Documentation', href: 'https://docs.blockstack.org/', }, { label: 'GitHub', href: 'https://github.com/blockstack', }, { label: 'Papers', href: 'https://www.blockstack.org/papers', }, { label: 'Discord', href: 'https://discord.com/invite/6PcCMU', }, ], }, { label: 'Testnet', href: 'https://www.blockstack.org/testnet' }, { label: 'Discover apps', href: 'https://app.co/' }, ]; export const HEADER_HEIGHT = 132; const HeaderTextItem: React.FC = ({ children, href, as, ...rest }) => ( {children} ); const NavItem: React.FC = ({ item, ...props }) => { const { hover, active, bind } = useTouchable({ behavior: 'link', }); return ( {item.label} {item.children ? ( ) : null} {item.children ? ( {styles => ( {item.children.map((child, _key) => ( {child.label} ))} )} ) : null} ); }; const Navigation: React.FC = props => { return ( {nav.map((item, key) => ( ))} ); }; const LogoLink = () => { const { hover, active, bind } = useTouchable(); const router = useRouter(); return ( Blockstack ); }; const Header = ({ hideSubBar, ...rest }: any) => { return ( <> ); }; export { Header };