import { useState } from 'react' import styled from '@emotion/styled' import { MenuIcon, XIcon } from '@heroicons/react/outline' import MenuItem from './MenuItem' import useWallet from '../hooks/useWallet' import ThemeSwitch from './ThemeSwitch' import UiLock from './UiLock' import { useRouter } from 'next/router' const Code = styled.code` border: 1px solid hsla(0, 0%, 39.2%, 0.2); border-radius: 3px; background: hsla(0, 0%, 58.8%, 0.1); ` const TopBar = () => { const { asPath } = useRouter() const { connected, wallet } = useWallet() const [showMenu, setShowMenu] = useState(false) const handleConnectDisconnect = () => { connected ? wallet.disconnect() : wallet.connect() } return ( ) } export default TopBar