import React from 'react'; import { Button, Popover } from 'antd'; import { CurrentUserBadge } from '../CurrentUserBadge'; import { SettingOutlined } from '@ant-design/icons'; import { Settings } from '../Settings'; import { LABELS } from '../../constants/labels'; import { ConnectButton } from '..'; import { useWallet } from '../../contexts/wallet'; import './style.css'; export const AppBar = (props: { left?: JSX.Element; right?: JSX.Element; useWalletBadge?: boolean; additionalSettings?: JSX.Element; }) => { const { connected } = useWallet(); const TopBar = (
{props.left} {connected ? ( ) : ( )} } trigger="click" >
); return TopBar; };