import { ClipboardIcon, PresentationChartLineIcon, } from '@heroicons/react/outline' import { Item } from './sidebar-item' import clsx from 'clsx' import { trackCallback } from 'web/lib/service/analytics' import TrophyIcon from 'web/lib/icons/trophy-icon' import { useUser } from 'web/hooks/use-user' import NotificationsIcon from '../notifications-icon' import router from 'next/router' import { userProfileItem } from './bottom-nav-bar' import Link from 'next/link' const mobileGroupNavigation = [ { name: 'Markets', key: 'markets', icon: PresentationChartLineIcon }, { name: 'Leaderboard', key: 'leaderboards', icon: TrophyIcon }, { name: 'About', key: 'about', icon: ClipboardIcon }, ] const mobileGeneralNavigation = [ { name: 'Notifications', key: 'notifications', icon: NotificationsIcon, href: '/notifications', }, ] export function GroupNavBar(props: { currentPage: string onClick: (key: string) => void }) { const { currentPage } = props const user = useUser() return ( ) } function NavBarItem(props: { item: Item currentPage: string onClick: (key: string) => void }) { const { item, currentPage, onClick } = props const track = trackCallback( `group navbar: ${item.trackingEventName ?? item.name}` ) return ( (onClick?.(item.key ?? '#'), track())} > {item.icon && } {item.name} ) }