import { ClipboardIcon, HomeIcon } 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 { userProfileItem } from './bottom-nav-bar'
import Link from 'next/link'
const mobileGroupNavigation = (slug: string) => [
{
name: 'Markets',
key: 'markets',
icon: HomeIcon,
href: `/group/${slug}/markets`,
},
{
name: 'About',
key: 'about',
icon: ClipboardIcon,
href: `/group/${slug}/about`,
},
{
name: 'Leaderboard',
key: 'leaderboards',
icon: TrophyIcon,
href: `/group/${slug}/leaderboards`,
},
]
const mobileGeneralNavigation = [
{
name: 'Notifications',
key: 'notifications',
icon: NotificationsIcon,
href: '/notifications',
},
]
export function GroupNavBar(props: { currentPage: string; groupSlug: string }) {
const { currentPage, groupSlug } = props
const user = useUser()
return (
)
}
function NavBarItem(props: { item: Item; currentPage: string }) {
const { item, currentPage } = props
const track = trackCallback(
`group navbar: ${item.trackingEventName ?? item.name}`
)
return (
{item.icon && }
{item.name}
)
}